Content deleted Content added
→Language comparison: add example for using mapcar in Lisp |
|||
Line 107:
(sqr (car l))))
'(1 2 3 4 5))
</source>
Using the function <code>mapcar</code>; above example would be written like this:
<source lang="lisp">
(mapcar (function sqr) '(1 2 3 4 5))
</source>
|