kotlin-stdlib / kotlin.sequences / flatten flatten Common JVM JS Native 1.0 fun <T> Sequence<Sequence<T>>.flatten(): Sequence<T> Returns a sequence of all elements from all sequences in this sequence. The operation is intermediate and stateless. Common JVM JS Native 1.0 @JvmName("flattenSequenceOfIterable") fun <T> Sequence<Iterable<T>>.flatten(): Sequence<T> Returns a sequence of all elements from all iterables in this sequence. The operation is intermediate and stateless.