https://kotlinlang.org logo
#announcements
Title
# announcements
d

denis.st

03/02/2016, 11:57 PM
@aaverin: I’m using this extension for
else
Copy code
inline infix fun <R> R?.otherwise(block: () -> R) = if (this != null) this else block()
// x?.let { println("not null") } otherwise { println("is null") }