Can we do a bit shorter with `associateByTo`? ```...
# stdlib
k
Can we do a bit shorter with
associateByTo
?
Copy code
inline fun <reified K : Enum<K>, V> enumMapOf(vararg pairs: Pair<K, V>) = pairs.associateByTo(EnumMap<K, V>(K::class.java), { it.first }, { it.second })