Documentation / dataflow / com.femastudios.dataflow.extensions / flatten
Go to reference

flatten

fun <T> Field<Iterable<Iterable<T>>>.flatten(): Field<List<T>>

Same as flatten, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling flatten in the transformation function.

This is simply a convenience function.

See Also

kotlin.collections.flatten


@JvmName("flattenSequenceOfIterable") fun <T> Field<Sequence<Iterable<T>>>.flatten(): Field<Sequence<T>>
fun <T> Field<Sequence<out Sequence<T>>>.flatten(): Field<Sequence<T>>

Same as flatten, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling flatten in the transformation function.

This is simply a convenience function.

See Also

kotlin.sequences.flatten