Closures/Value capture: Difference between revisions

Content added Content deleted
(Emacs Lisp: Use lexical binding rather than lexical-let)
m (Emacs Lisp: Remove trailing line break)
Line 639: Line 639:
(* x x)))
(* x x)))
'(1 2 3 4 5 6 7 8 9 10)))
'(1 2 3 4 5 6 7 8 9 10)))
;; => (1 4 9 16 25 36 49 64 81 100)
;; => (1 4 9 16 25 36 49 64 81 100)</lang>
</lang>


=={{header|Erlang}}==
=={{header|Erlang}}==