Join Slack
Powered by
the val syntax could open up other chances for bei...
# language-proposals
a
alex.hart
03/09/2017, 3:14 PM
the val syntax could open up other chances for being a bit more expressive.
Copy code
val c = when (val (a, b) = expr()) { a.contains(”asdf”) -> fn1(b) else -> fn2(b) }
Open in Slack
Previous
Next