Scoop API

scoop:scoop.std:0.1.0

associateBy

function associateBy

source · line 68
public
public fun <T, K, V> Iterable<T>.associateBy(keySelector: (T) -> K, valueTransform: (T) -> V): Map<K, V> where K : Equals<K>, K : Hash

Extension receiver: Iterable<T>

Builds a map using selected keys and optional value transformation; the last value for each key wins.