Matt
03/18/2019, 3:56 PMdiesieben07
03/18/2019, 3:59 PMMap#entries? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/entries.htmlMatt
03/18/2019, 4:02 PMNikky
03/18/2019, 4:03 PMmap.entries.find { (k, v) -> k == key }diesieben07
03/18/2019, 4:04 PMmap[k]?.let { v -> k to v }diesieben07
03/18/2019, 4:04 PMPair<K, V> and is much faster than searching through the whole setMatt
03/18/2019, 4:10 PMv -> k to v do?diesieben07
03/18/2019, 4:16 PMa to b creates a Pair from a and bMatt
03/19/2019, 8:44 AMk is then unresolved?Nikky
03/19/2019, 11:10 AMk would be the key that you request the entry for, kinda need to know itMatt
03/19/2019, 11:13 AMk is unresolved in map[myKey].let { v -> k to v }Nikky
03/19/2019, 11:27 AMmap[myKey].let { v -> myKey to v }