Anonymous user
Apply a callback to an array: Difference between revisions
→[[Common Lisp]]
Line 124:
[[Category:Common Lisp]]
Imperative: print 1, 2, 3, 4 and 5
(map nil #'print #(1 2 3 4 5))
Line 133:
(map 'vector #'square #(1 2 3 4 5))
Destructive, like the
(defvar *a* (vector 1 2 3))
|