make zip, concat, and intersect wrap the result in Array type

This commit is contained in:
2022-05-09 15:12:03 -04:00
parent 8761de4092
commit 10aa068da4
3 changed files with 31 additions and 10 deletions

View File

@@ -610,9 +610,9 @@
(function _testIntersect []
(let [intersection2d
(for i (the Array<Array<Dynamic>> (intersect (.split "abc" "") (.split "xyz" ""))) (i.join ""))
(for i (intersect (.split "abc" "") (.split "xyz" "")) (i.join ""))
intersection3d
(for i (the Array<Array<Dynamic>> (intersect (.split "abc" "") (.split "xyz" "") (.split "123" ""))) (i.join ""))]
(for i (intersect (.split "abc" "") (.split "xyz" "") (.split "123" "")) (i.join ""))]
(assert (contains intersection2d "ax"))
(assert (contains intersection2d "ay"))
(assert (contains intersection2d "az"))