Provide flatten for sequence of iterables.

#KT-9977
This commit is contained in:
Ilya Gorbunov
2015-11-22 12:56:05 +03:00
parent 4181142400
commit ca4bdd23e0
4 changed files with 43 additions and 51 deletions
@@ -235,7 +235,7 @@ fun mapping(): List<GenericFunction> {
typeParam("R")
returns("Sequence<R>")
body {
"return FlatteningSequence(this, transform)"
"return FlatteningSequence(this, transform, { it.iterator() })"
}
}