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

associateWith

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

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

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> Attribute<Sequence<K>>.associateWith(valueSelector: (K) -> V): Attribute<Map<K, V>>

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

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> Attribute<String>.associateWith(valueSelector: (Char) -> V): Attribute<Map<Char, V>>

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

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