Sujet : Re: mapcar using a function with one argument fixed
De : Nobody447095 (at) *nospam* here-nor-there.org (B. Pym)
Groupes : comp.lang.lispDate : 19. Jun 2025, 23:29:50
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <103230t$5vrf$1@dont-email.me>
User-Agent : XanaNews/1.18.1.6
Rainer Joswig wrote:
(LOOP FOR x IN list-for-xs AND y IN list-for-ys
COLLECT (my-function a y x b))
Scheme:
(map
(lambda(x y) (list x '< y))
'(2 3 4 5)
'(6 7 8 9))
===>
((2 < 6) (3 < 7) (4 < 8) (5 < 9))