From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: I'd like to marry while and mapcar... Date: Fri, 06 Feb 2015 14:50:37 +0100 Message-ID: <877fvv9mj6.fsf@wmi.amu.edu.pl> References: <87vbjfdwq7.fsf@wmi.amu.edu.pl> <83386jduwl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423230672 3733 80.91.229.3 (6 Feb 2015 13:51:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 13:51:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 06 14:51:11 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJjJN-0007kV-Ha for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 14:51:09 +0100 Original-Received: from localhost ([::1]:48377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJjJM-0002PO-Rr for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 08:51:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJjJ7-0002Ob-9C for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 08:50:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJjJ1-0006EJ-UY for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 08:50:53 -0500 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:43349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJjJ1-0006E4-MO for help-gnu-emacs@gnu.org; Fri, 06 Feb 2015 08:50:47 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 0CB144D72F for ; Fri, 6 Feb 2015 14:50:46 +0100 (CET) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RtnE1MpMUlZg for ; Fri, 6 Feb 2015 14:50:45 +0100 (CET) Original-Received: from localhost (117-116.echostar.pl [213.156.117.116]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id C86CD4D721 for ; Fri, 6 Feb 2015 14:50:45 +0100 (CET) In-reply-to: <83386jduwl.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102533 Archived-At: On 2015-02-06, at 14:36, Eli Zaretskii wrote: >> From: Marcin Borkowski >> 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