You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The List Patterns section does not include any example of a patterns that destructures the tail of the list into a variable like [head, ..tail]. This kind of pattern is then shown in the List Recursion section but in my opinion it should also be included in the patterns page for clarity.
I was looking for this kind of pattern while working on a little project and I assumed that this kind of destructuring wasn't possible because it wasn't mentioned. Including it earlier would help avoid confusion for users exploring list pattern matching.
The text was updated successfully, but these errors were encountered:
Sorry for the delayed response. I've created a PR with the proposed changes.
P.S.: This is my first time contributing to an open-source project with both an Issue and a PR, so please let me know if I've missed anything or made any mistakes.
The List Patterns section does not include any example of a patterns that destructures the tail of the list into a variable like
[head, ..tail]
. This kind of pattern is then shown in the List Recursion section but in my opinion it should also be included in the patterns page for clarity.I was looking for this kind of pattern while working on a little project and I assumed that this kind of destructuring wasn't possible because it wasn't mentioned. Including it earlier would help avoid confusion for users exploring list pattern matching.
The text was updated successfully, but these errors were encountered: