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

associate

fun <T, K, V> Field<Iterable<T>>.associate(transform: (T) -> Pair<K, V>): Field<Map<K, V>>

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

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

This is simply a convenience function.

See Also

kotlin.collections.associate


fun <T, K, V> Field<Sequence<T>>.associate(transform: (T) -> Pair<K, V>): Field<Map<K, V>>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.associate


fun <K, V> Field<String>.associate(transform: (Char) -> Pair<K, V>): Field<Map<K, V>>

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

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

This is simply a convenience function.

See Also

kotlin.text.associate