help-gnu-emacs
[Top][All Lists]
Advanced

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

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


From: Marcin Borkowski
Subject: Re: I'd like to marry while and mapcar...
Date: Fri, 06 Feb 2015 14:50:37 +0100

On 2015-02-06, at 14:36, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
>> 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?

I'm not sure whether I understood you...  How can `throw' help me with
this?  And, `mapcar' already wants a list; I want yet to construct it...

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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