Yeah, I know I can just convert them back and fort...
# announcements
s
Yeah, I know I can just convert them back and forth, but it feels weird. Maybe it's just me. 😛
👌 1
a
Kotlin has no higher order polymorphism, so they opted for a single
Iterable<T>.map
function that always returns
List<T>
. You can use
mapTo
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/map-to.html
s
Yeah,
mapTo
is an option. I just found the base functionality strange. simple smile