Sujet : Re: distinction?
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.lispDate : 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/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca