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

component2

operator fun <T> Attribute<List<T>>.component2(): Attribute<T>
operator fun <K, V> Attribute<Entry<K, V>>.component2(): Attribute<V>

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

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

This is simply a convenience function.

See Also

kotlin.collections.component2