https://kotlinlang.org logo
#android
Title
# android
k

kittinunf

09/28/2015, 6:31 PM
Arh I got it! Thanks @orangy Because I ended up writing my own function like
Copy code
public fun <T, U> T?.map(f: (T) -> U?): U? {
    when (this) {
        null -> return null
        else -> return f(this)
    }
}
But, I think it is better to use the one stdlib provided.