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

flatten

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

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

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> Attribute<Sequence<Iterable<T>>>.flatten(): Attribute<Sequence<T>>
fun <T> Attribute<Sequence<out Sequence<T>>>.flatten(): Attribute<Sequence<T>>

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

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