From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: Re: How to mapcar or across a list? Date: Wed, 15 Jul 2015 22:42:13 +0200 Message-ID: <87fv4pywyi.fsf@gmx.us> References: <87io9lmb4z.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1436993438 4543 80.91.229.3 (15 Jul 2015 20:50:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Jul 2015 20:50:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 15 22:50:32 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 1ZFTdP-0007mV-KD for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 22:50:31 +0200 Original-Received: from localhost ([::1]:37450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTdO-0006eZ-Tt for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Jul 2015 16:50:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTd6-0006Zs-OL for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 16:50:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFTd3-0001h0-Hz for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 16:50:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFTd3-0001gh-Bp for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 16:50:09 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZFTcy-0007d1-Ql for help-gnu-emacs@gnu.org; Wed, 15 Jul 2015 22:50:04 +0200 Original-Received: from x55b324bd.dyn.telefonica.de ([85.179.36.189]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2015 22:50:04 +0200 Original-Received: from rasmus by x55b324bd.dyn.telefonica.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Jul 2015 22:50:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: x55b324bd.dyn.telefonica.de Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAAAAAByaaZbAAAAAmJLR0QA/4ePzL8AAAAJcEhZ cwAAAEgAAABIAEbJaz4AAAICSURBVEgNdcHBQVxJAMXAjuLFp8wUp27bf8Aw2GzV6f/s6l+n/+Eu or+cfudewn46/Q/ZBdoPp185Ly7N3px+hX1wQ+zL6TdabnTphP44/UJqg40ukQF2nX4xkkq2Yc4L qE7/EvskY4XtYZ3+hb2TJGOjTn8z+oletlmnd4ayHvQD26hObxxMZuX6Zm6j6/QDYrNy1ezFbX04 vVHojesP6MPpDVdvpIcV9uH0TvugZp/QZh9OH+wdKrMX9wB6nB4ilGiX27DZwzRAu04PKiyxyz1w fcNeTpdWWIJd+2Rf2HocRllhaNi1F/qmrutQk8q0kh5ssxftUnucSqiULq2s7AVlCaPH6ZLK0TW0 RHtABVSz69Bl5bokZzmwwspRSdcR+yaV69IurJyVdJ2kb5SL2SeoXBd2naQvmkgMe4FKrAzwBH1B SEt5SbqoBHMn7Qu76JNl9EmsOGF/OGP0bawfPEVfePTG0Q+ckt6w/vCC3gina31zfQLUvol2ukY5 7cI+QH+h61SyjQ1k9kn7SbtOhbkrtvWFfqLHqejBDOyLKNgn6XFKe7CZvXFDxcrNHqeYysY2eucu nWyEXadgD3PQGyknuyjXdWqlVjh7Z8XGemyrTtEHZPZNKzeb1QarU9iDefUNlI0cua22TjmTrUlv 2Icc2yw2TuUuiuwNXULSw832H9NJ/ONvcHOfAAAAAElFTkSuQmCC User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:EafYzw+aGKqQzOGv0xZgeUOUzqQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:105738 Archived-At: Marcin Borkowski writes: > Hi there, > > so here's my problem: I have a list of Boolean values, and I want to > `mapcar' an `or' across it (IOW, I want to test whether at least one of > them is true). Of course, (apply #'or my-list) does not work. Of > course, I can (cl-reduce (lambda (x y) (or x y)) my-list) -- but is > there a better method? > > BTW, my-list doesn't really exist: it is a result of `mapcar'ing > a function taking some value and yielding a Boolean value, so bonus > points if the method does not process the whole list. Does cl-some and cl-every fit the bill? Rasmus -- Vote for Dick Taid in an election near you!