mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 09:15:32 +01:00
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:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user