mirror of
https://github.com/janet-lang/janet
synced 2026-06-01 10:12:16 +00:00
cb5af974a4
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.