-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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.
Metadata
Metadata
Assignees
Labels
E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.