Join Slack
Powered by
You could do `value = if (list.size == 1) list.fir...
# getting-started
k
karelpeeters
10/12/2017, 3:46 PM
You could do
value = if (list.size == 1) list.first else throw Exception ()
.
Open in Slack
Previous
Next