David Glasser
Boolean.something<T>(f: () -> T): T? = if (this) { f() } else null
egorand
if (boolean) f() else null
ilya.gorbunov