Hi! Is it possible to map a MutableMap<String, ...
# announcements
l
Hi! Is it possible to map a MutableMap<String, String> into a MutableMap<String, Float> using a method like
mapValues
?
👌 5
h
e.g.
mapOf("e" to "2.718", "pi" to "3.141").mapValues { it.value.toFloat() }
d
You can do that more compact: https://pl.kotl.in/r1PtJFTU4
👍 1