I'm trying to pattern match using tuples as:
let a = #(1,2)
let b = #(2,1)
case a {
#(b.1, b.0) -> {}
_ -> {}
But the compiler complains:
I'm expecting a pattern here
Hint: A pattern can be a constructor name, a literal value
or a variable to bind a value to, etc.
Which means that I need to unpack b first. I wonder what's the reason I cannot use the tuple directly