tweag / nickel

Better configuration for less
https://nickel-lang.org/
MIT License
2.23k stars 85 forks source link

Implement array patterns #1912

Closed yannham closed 1 month ago

yannham commented 2 months ago

Depends on #1910.

This commit adds a new class of patterns: array patterns. This is a natural extension, both syntactically and semantically, of existing data structure patterns in Nickel (in particular of records). Similarly, arrays pattern can also capture the rest of the pattern (the tail of the array that hasn't been matched yet) and bind it to a variable.

dpulls[bot] commented 1 month ago

:tada: All dependencies have been resolved !