[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'd like to marry while and mapcar...

From: Barry Margolin
Subject: Re: I'd like to marry while and mapcar...
Date: Fri, 06 Feb 2015 11:25:19 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Eli Zaretskii <address@hidden> wrote:

> > From: Marcin Borkowski <address@hidden>
> > Date: Fri, 06 Feb 2015 13:56:48 +0100
> > 
> > What I'd need is kind of a marriage of while and mapcar: I'd like to run
> > some function until it returns nil and make a list of all results it
> > gives back until then.
> Can't you use 'throw' from within the function called by mapcar?

That would allow you to terminate the loop, but how will it return the 
list of the results? The function doesn't get a reference to the list of 
results, so what value would you throw?

Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

reply via email to

[Prev in Thread] Current Thread [Next in Thread]