function associateBy
source · line 47public
public fun <T, K, V> Sequence<T>.associateBy(keySelector: (T) -> K, valueTransform: (T) -> V): Map<K, V> where K : Equals<K>, K : Hash
Extension receiver: Sequence<T>
Consumes this sequence. Builds a map using selected keys and optional value transformation; the last value for each key wins.
type parameter T
source · line 47public
T
type parameter K
source · line 47public
K
type parameter V
source · line 47public
V
parameter valueTransform
source · line 47public
valueTransform: (T) -> V
parameter keySelector
source · line 47public
keySelector: (T) -> K
parameter receiver
source · line 47public
Sequence<T>