Map/Vector applicaility

- Maps and Vectors can be applied as functions, using keys and int as
  their arguments
- Added Identity function
- Test before install
- added conditional mapping
This commit is contained in:
teo3300
2024-06-22 20:23:24 +09:00
parent 5db1cf1910
commit 5996af1aea
4 changed files with 35 additions and 1 deletions

View File

@ -1,3 +1,7 @@
(def! map-nil (fn* [v l]
"Map nil values of l to the specified value"
(map-if v nil l)))
(def! concat (fn* [x y] (def! concat-r (fn* [x y t]
"Concatenate arguments, keeping their order"
(if (car x)