https://kotlinlang.org logo
#getting-started
Title
# getting-started
a

appasni

03/17/2017, 5:29 PM
How come this works?
Copy code
val email = "".takeIf { it.contains("@") }
val ok: String = email.toString()
Doesn't takeIf return
T?
?