does kotlin stdlib have a function like `Boolean.s...
# announcements
d
does kotlin stdlib have a function like
Boolean.something<T>(f: () -> T): T?  = if (this) { f() } else null
?
e
Why is
if (boolean) f() else null
undesirable?
d
eh, it just gets repetitive and IntelliJ wants to put it on a lot of lines
i
There's a request about the similar function, but that proposed function wouldn't return null if the receiver was `false`: https://youtrack.jetbrains.com/issue/KT-6938