Does Kotlin’s pattern matching use `equals`? Wonde...
# announcements
o
Does Kotlin’s pattern matching use
equals
? Wondering if it that’s the reason matching on Pair elements isn’t possible.
k
omarkj: Yeah, it does. And
Pair
is just a stdlib class. Kotlin has no concept of how tuples work so it can't do anything smart regarding pattern-matching on a Pair or Triple
o
Thanks, I figured this was the case.