Join Slack
Powered by
<@U5QGY080J> You should do `when(myPair) { is Pair...
# announcements
e
elizarov
07/03/2017, 1:22 PM
@iex
You should do
when(myPair) { is Pair -> ... }
and refer to
myPair
contents as
myPair.first
and
myPair.second
. You
can
destructure pair first as
@gildor
shows, but you
don’t have to
.
Open in Slack
Previous
Next