Arh I got it! Thanks <@U092308M7> Because I ende...
# android
k
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.