variadic concat. Close #18

This commit is contained in:
2021-07-22 13:55:47 -06:00
parent b9041ccff8
commit 19b452309b
4 changed files with 18 additions and 0 deletions

View File

@@ -109,6 +109,9 @@
(defun myTypeCheck []
(the Int 5))
(defun _testConcat []
(Assert.equals (.toString [1 2 3 4]) (.toString (concat [1] [2 3] [4]))))
(defun _testGroups []
(Assert.equals (.toString [[1 2] [3 4]]) (.toString (groups [1 2 3 4] 2)))
(Assert.equals (.toString [[1 2 3] [4]]) (.toString (groups [1 2 3 4] 3 Keep)))