Join Slack
Powered by
If I put an expression into a `when`, how can I re...
# announcements
b
bombe
11/10/2016, 7:26 PM
If I put an expression into a
when
, how can I reference it in the branches?
it
doesn’t seem to be it (no pun intended).
Copy code
when (map?.get("foo")) { is Type1 -> it; is Type2 -> process(it) }
5
Views
Open in Slack
Previous
Next