Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Is there a dolists (i.e. parallel dolist)?

5 views
Skip to first unread message

Robert L.

unread,
Dec 9, 2017, 3:38:03 PM12/9/17
to
Peter Dudey wrote:

> > Given two lists of identical size (ideally extensible to trees) use
> >dolists to progress through them in parallel, e.g.
> >
> > +
> > (dolist | (dolists
> > (element list | ( (elt1 list1)
> > (myfunction element) ) | (elt2 list2) )
> > | (myfunction elt1 elt2) )
> > +
>
> Well, you could do:
>
> (mapcar #'myfunction list1 list2)

(for-each (compose displayln list) '(a b c) '(2 3 4))
===>
(a 2)
(b 3)
(c 4)


--
Goyim were born only to serve us. Without that, they have no place in the
world---only to serve the People of Israel.... They will work, they will plow,
they will reap. We will sit like an effendi and eat. --- Rabbi Ovadia Yosef
http://archive.org/details/nolies
web.archive.org/web/20101020044210/http://www.jpost.com/JewishWorld/JewishNews/Article.aspx?id=191782
0 new messages