Closed
Description
Pattern matching binding syntax is not intuitive and requires documentation, as evidenced by the original issue below
Original
Sometimes it is desirable to be able to bind the entire pattern matched to a separate variable. Haskell uses @ for this, and it works nicely.
Consider input (1,2) fed into...
match vector {
c@(a, b) => ...
}
...where c = (1,2), a = 1 and b = 2.