From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Wanted: mapcar() without nils Date: Sat, 13 Jun 2009 14:47:02 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1244897253 21587 80.91.229.12 (13 Jun 2009 12:47:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 13 Jun 2009 12:47:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?UTF-8?B?Tm9yZGzDtnc=?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 13 14:47:31 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MFSdu-0006YU-6Q for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 14:47:30 +0200 Original-Received: from localhost ([127.0.0.1]:46748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFSdt-0007LH-7N for geh-help-gnu-emacs@m.gmane.org; Sat, 13 Jun 2009 08:47:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MFSdZ-0007LC-PS for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 08:47:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MFSdU-0007L0-Ct for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 08:47:08 -0400 Original-Received: from [199.232.76.173] (port=59403 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MFSdU-0007Kx-7t for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 08:47:04 -0400 Original-Received: from mail-fx0-f217.google.com ([209.85.220.217]:55453) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MFSdT-0003He-Rz for help-gnu-emacs@gnu.org; Sat, 13 Jun 2009 08:47:04 -0400 Original-Received: by fxm17 with SMTP id 17so4123880fxm.42 for ; Sat, 13 Jun 2009 05:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tip9yFAOWAo/ro2tBeVVHEUXB+QAM1tPDpLa4NnKz54=; b=i+D9bBEU1yEc03Pl6mFhK444qQUFMq7FnoRyNnCzOsf+qi3spLecR49ISF15trwdCJ pNLNRL9IlM3vvWNBkziiDPsk03NFchwBvIYa/T5XzCMIZKU+Qa2oTWyFnaNxrmDZ4iaH 2jm5/j0WXtx0/g3+nXp/LM/qt/l3NvlsdvAuI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RcWRvqzbqKJ4K6md3/5bTY0NDAHvPq+y8UQwW/8MvPOAG3MrppEVzXLgddCFhcwxNU X/uMWQA/GTq8vZgrfQbAXqGfMLKZE4tBSV4KRVwc4Uo3g8fc0aHWMcYZVufZol2L6T7q Z08UmDMMQVn28wRZsy8YpaOPf/V5BtMn80DVs= Original-Received: by 10.239.150.6 with SMTP id l6mr391239hbb.47.1244897222625; Sat, 13 Jun 2009 05:47:02 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65243 Archived-At: (delq nil ...) On Sat, Jun 13, 2009 at 2:19 PM, Nordl=C3=B6w wrote: > How do I apply a function for each element in a sequence a return the > non-nil result only? I have used mapcar() but it returns the nils > aswell. Do I have to filter out the non-nils explicitly or is there a > builtin function that does all this? > > /Nordl=C3=B6w >