mirror of
https://github.com/janet-lang/janet
synced 2025-04-20 17:53:14 +00:00

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.