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

associate

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

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

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> Attribute<Sequence<T>>.associate(transform: (T) -> Pair<K, V>): Attribute<Map<K, V>>

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

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> Attribute<String>.associate(transform: (Char) -> Pair<K, V>): Attribute<Map<K, V>>

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

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