RosettaCodeData/Task/Closures-Value-capture/Emacs-Lisp/closures-value-capture.l
2023-07-01 13:44:08 -04:00

7 lines
215 B
Common Lisp

;; -*- lexical-binding: t; -*-
(mapcar #'funcall
(mapcar (lambda (x)
(lambda ()
(* x x)))
'(1 2 3 4 5 6 7 8 9 10)))
;; => (1 4 9 16 25 36 49 64 81 100)