if you want to return a useful value you have to c...
# language-proposals
r
if you want to return a useful value you have to contemplate both cases. That is a
fold
over booleans which the language already has special syntax for it:
Copy code
val result: Int = if (running) { 1 } else { 0 }
👍 1