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

associateWith

fun <K, V> Field<Iterable<K>>.associateWith(valueSelector: (K) -> V): Field<Map<K, V>>

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

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

This is simply a convenience function.

See Also

kotlin.collections.associateWith


fun <K, V> Field<Sequence<K>>.associateWith(valueSelector: (K) -> V): Field<Map<K, V>>

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

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

This is simply a convenience function.

See Also

kotlin.sequences.associateWith


fun <V> Field<String>.associateWith(valueSelector: (Char) -> V): Field<Map<Char, V>>

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

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

This is simply a convenience function.

See Also

kotlin.text.associateWith