Leon K
02/15/2020, 8:57 PMfun <T, K> List<T>.toMapBy(keySelector: (T) -> K): Map<K, T>? i know there is .groupBy but that returns a map of lists, while most of the time i'd want the equivalent of myList.map { it.myKey to it }.toMap()Derek Peirce
02/15/2020, 8:58 PMLeon K
02/15/2020, 8:59 PM