Anonymous user
Apply a callback to an array: Difference between revisions
→{{header|ACL2}}
Line 4:
=={{header|ACL2}}==
ACL2 does not have first-class functions; this is close, however:
<lang lisp>(defun
(if (endp xs)
nil
(cons (
(sq-each (rest xs)))))
(defun fn-to-apply (x)
(* x x))
</lang>
=={{header|ActionScript}}==
|