I'm just getting started with Kotlin, and I'll apo...
# announcements
s
I'm just getting started with Kotlin, and I'll apologize in advance for asking something that's probably been discussed ad nauseam, but I found the lack of a
T?.map(block: (T) -> R): R?
map / bind-type function for nullable types in the standard library odd. It seems like that's all that's needed for monadic operations on nullable types, and I haven't been able to find an idiomatic way of applying a function to the non-null value (except when calling a method on the nullable type using
.?
).