Rough implementation of list-eater pattern matching. Close #1

This commit is contained in:
2021-07-22 15:58:21 -06:00
parent 19b452309b
commit 7739c6fd28
6 changed files with 133 additions and 7 deletions

View File

@@ -348,6 +348,7 @@
(otherwise (Assert.fail)))
(case 5
((when false (or 5 6)) (Assert.fail))
((when true (or 7 8 9)) (Assert.fail))
(otherwise (Assert.pass)))
// In Haxe,
// `switch (Some(true)) { case Some(true | false): "a"; default: "b"; }`