Sujet : Re: Remove the occurences of a given element from a list.
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lispDate : 19. Jun 2025, 23:35:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <10323bv$6386$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
Pascal J. Bourguignon wrote:
The really sophisticated Common Lisp programmer would use LOOP:
(defun iterative-function (list)
(loop
:for item :in list
:collect (build-new-item-from-old-item item)))
Scheme.
(map abs '(-9 0 2 -3))
===>
(9 0 2 3)