1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 16:00:27 +00:00
janet/test
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
..
amalg Update copyright dates. 2021-05-31 13:46:02 -05:00
fuzzers Make janet_equals and janet_compare non recursive 2020-04-24 16:18:31 -05:00
helper.janet Tweaks on redef feature branch. 2022-01-06 20:38:15 -06:00
suite0000.janet Merge branch 'master' of github.com:janet-lang/janet 2022-01-08 11:27:48 -06:00
suite0001.janet POC "rest" pattern in destructuring 2022-01-15 14:51:44 -05:00
suite0002.janet Update copyright dates. 2021-05-31 13:46:02 -05:00
suite0003.janet Update copyright dates. 2021-05-31 13:46:02 -05:00
suite0004.janet Update copyright dates. 2021-05-31 13:46:02 -05:00
suite0005.janet Fix fiber aware combinators to use general iteration instead of fiber 2021-08-06 16:17:47 -05:00
suite0006.janet Update copyright dates. 2021-05-31 13:46:02 -05:00
suite0007.janet Support using functions with :out dynamic binding 2021-11-13 01:42:44 +09:00
suite0008.janet Add quoted literal support in the match macro. 2021-11-08 15:33:11 -06:00
suite0009.janet Disable file read test to help CI. 2022-01-06 20:52:21 -06:00
suite0010.janet Add test case for missing struct proto 2021-11-23 23:17:24 -06:00
suite0011.janet Update readme. 2021-12-04 13:25:02 -06:00