kotlin probably has a extension function for Optio...
# announcements
n
kotlin probably has a extension function for Optional to unpack it into a Nullable
p

https://media.giphy.com/media/1M9fmo1WAFVK0/giphy.gifâ–¾

n
imagine a multiplatform project with
expect fun getSomeData(): Data?
then the actual declaration can use some java library that gives them a Optional Result, unpack it and the common code is happy it does not know about Optional types
p
Ah! ok, for the Java
Optional
I would suggest using a different
Option
type that can be used across 🙂 And allows to do more things than a basic map and reduce hehe