From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: I'd like to marry while and mapcar... Date: 6 Feb 2015 17:47:08 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1423245018 5186 80.91.229.3 (6 Feb 2015 17:50:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 17:50:18 +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 18:50:18 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 1YJn2n-0002pG-Tp for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 18:50:18 +0100 Original-Received: from localhost ([::1]:49942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJn2n-0004co-EC for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Feb 2015 12:50:17 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-X-Trace: individual.net 1H/VWErSI4TaU//y/f9lKweg0v26chIJzoxJLExvQOZjfq+8Hx Cancel-Lock: sha1:/BcCG0sd2lYp5g1DcJyrt0Zh4To= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:210264 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:102541 Archived-At: Joost Kremers wrote: > Marcin Borkowski wrote: >> Hello Emacsers and Elispers! >> >> 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. > > Sounds like a job for -take-while from the dash library: Actually, reading the question again (and this time properly,) it's not... I'd use cl-loop for this. -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)