Prelude.splitByAll

This commit is contained in:
2023-06-29 15:38:48 -06:00
parent f68911cf61
commit 1066a4ed76
3 changed files with 38 additions and 1 deletions

View File

@@ -950,4 +950,9 @@ From:[(assert false (+ \"false \" \"should \" \"have \" \"been \" \"true\"))]" m
(otherNameForObj?.doThing)
(?.doThing obj)
(?.doThing otherNameForObj))
(Assert.pass))
(Assert.pass))
(function _testSplitByAll []
(Assert.equals
(Std.string ["Thing" "<" "Generic" ">" "->" "Thing"])
(Std.string (Prelude.splitByAll "Thing<Generic>->Thing" [">" "<" "->"]))))