RosettaCodeData/Task/Closures-Value-capture/TXR/closures-value-capture-3.txr
2015-11-18 06:14:39 +00:00

5 lines
180 B
Text

;; Dropping distracting "skip last" requirement
;; (not implemented in original Elisp either).
(mapcar 'call
(mapcar (lambda ()
(lambda () (* x x))) '(1 2 3 4 5 6 7 8 9 10)))