associateByLaw

inline fun <T, K> Array<T>.associateByLaw(keySelector: (T) -> K): Map<K, T>