Karlo Lozovina
when
temp
val temp = foo.bar.getBaz() when (temp) { is A -> print(temp) is B -> ... }
Shawn
when (val temp = foo.bar.getBaz()) { is A -> print(temp) is B -> ... }
A modern programming language that makes developers happier.