If I put an expression into a `when`, how can I re...
# announcements
b
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) }