Re: Remove the occurences of a given element from a list.

Liste des GroupesRevenir à cl lisp 
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.lisp
Date : 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)

Date Sujet#  Auteur
19 Jun 25 o Re: Remove the occurences of a given element from a list.1B. Pym

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal