mirror of
https://github.com/janet-lang/janet
synced 2024-12-25 16:00:27 +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. |
||
---|---|---|
.. | ||
amalg | ||
fuzzers | ||
helper.janet | ||
suite0000.janet | ||
suite0001.janet | ||
suite0002.janet | ||
suite0003.janet | ||
suite0004.janet | ||
suite0005.janet | ||
suite0006.janet | ||
suite0007.janet | ||
suite0008.janet | ||
suite0009.janet | ||
suite0010.janet | ||
suite0011.janet |