1
0
mirror of https://github.com/janet-lang/janet synced 2025-04-20 17:53:14 +00:00
Ian Shehadeh cb5af974a4 POC "rest" pattern in destructuring
Add support for using [& rest] to match the remaining values
in an array or tuple when destructuring.

the rest pattern is implemented by pushing remaining values in the
rhs to the stack once & is found on the lhs.
Then tuple is called and the result is assigned
to the next symbol on the lhs.

This commit DOES NOT implement handling for malformed patterns.
2022-01-15 14:51:44 -05:00
..
2021-05-31 13:46:02 -05:00
2022-01-06 20:38:15 -06:00
2021-05-31 13:46:02 -05:00
2021-05-31 13:46:02 -05:00
2021-05-31 13:46:02 -05:00
2021-05-31 13:46:02 -05:00
2021-12-04 13:25:02 -06:00