Join Slack
Powered by
if you want to return a useful value you have to c...
# language-proposals
r
raulraja
01/31/2018, 6:45 PM
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
Open in Slack
Previous
Next