Jump to content

Closures/Value capture: Difference between revisions

→‎{{header|TXR}}: Don't print last.
(→‎{{header|TXR}}: Don't print last.)
Line 1,369:
 
<lang txrlisp>(let ((funs (mapcar (ret (op * @@1 @@1)) (range 1 10))))
[mapcar call [funs 0..-1]])</lang>
 
{{out}}
 
<lang txrlisp>(1 4 9 16 25 36 49 64 81 100)</lang>
 
=={{header|zkl}}==
543

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.