Re: distinction?

Liste des GroupesRevenir à cl lisp 
Sujet : Re: distinction?
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lisp
Date : 06. Jul 2024, 02:50:14
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240705174918.512@kylheku.com>
References : 1
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-07-05, B. Pym <No_spamming@noWhere_7073.org> wrote:
Kent M. Pitman wrote:
>
I guess my point is that some things "feel" recursive and should be expressed
recursively.  But some things "feel" iterative, and I don't see anything wrong
with:
 
 (loop for entry in some-list
       for name = (person-name entry)
       for age  = (person-age  entry)
       collect (list name age))
>
Abysmal.
>
(map
  (lambda (entry) (list (person-name entry) (person-age entry)))
  some-list)

TXR Lisp:

(mapcar [juxt .name .age] person-list)

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
5 Jul 24 * Re: distinction?2B. Pym
6 Jul 24 `- Re: distinction?1Kaz Kylheku

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal