Travis Griggs
03/17/2021, 11:32 PMstatus
and a newState
values, and I'd like to match on combinations. I could of course nest them, but I was hoping to match on a tuple like thing...
e.g.
when (status, newState) {
42, 13 -> "The answer is bad luck"
}nanodeath
03/17/2021, 11:34 PMnanodeath
03/17/2021, 11:34 PMnanodeath
03/17/2021, 11:35 PMwhen (status to newState) { Pair(42, 13) -> ... }
Travis Griggs
03/17/2021, 11:37 PMnanodeath
03/17/2021, 11:39 PMephemient
03/17/2021, 11:47 PM