Bonus: Extension property to convert `Map<K, Li...
# announcements
h
Bonus: Extension property to convert
Map<K, List<V>>
to
Iterable<Pair<K, V>>
.
Copy code
private val <K, V> Map<K, List<V>>.pairs: Iterable<Pair<K, V>>
    get() = flatMap { entry -> entry.value.map { value -> entry.key to value } }
So, enough for today.