add math utilities

This commit is contained in:
Quentin Leonetti
2019-07-14 05:14:53 +02:00
parent 216a077799
commit f05fa86dbb
2 changed files with 40 additions and 2 deletions

View File

@@ -23,4 +23,7 @@
(test "first" (first ("a" "b" "c")) "a")
(test "last" (last ("a" "b" "c")) "c")
(test "range simple" (range 0 4) (0 1 2 3 4))
(test "range with step" (range 0 4 2) (0 2 4))
(test "range with negative step" (range 0 -4 -1) (0 -1 -2 -3 -4))
)