From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Juanma Barranquero" Newsgroups: gmane.emacs.devel Subject: Re: Property list key names Date: Sat, 9 Aug 2008 17:07:47 +0200 Message-ID: References: <489DA21E.6040008@gmail.com> <489DB17D.9020003@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218294593 1817 80.91.229.12 (9 Aug 2008 15:09:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2008 15:09:53 +0000 (UTC) Cc: Emacs Devel To: "Lennart Borgman (gmail)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 09 17:10:44 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRq5X-0007W5-9p for ged-emacs-devel@m.gmane.org; Sat, 09 Aug 2008 17:10:39 +0200 Original-Received: from localhost ([127.0.0.1]:50115 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRq4a-0001CT-L3 for ged-emacs-devel@m.gmane.org; Sat, 09 Aug 2008 11:09:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRq2q-0007Rz-Pw for emacs-devel@gnu.org; Sat, 09 Aug 2008 11:07:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRq2p-0007QA-8q for emacs-devel@gnu.org; Sat, 09 Aug 2008 11:07:52 -0400 Original-Received: from [199.232.76.173] (port=36271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRq2p-0007Q3-1o for emacs-devel@gnu.org; Sat, 09 Aug 2008 11:07:51 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.188]:18187) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRq2o-0001TT-9p for emacs-devel@gnu.org; Sat, 09 Aug 2008 11:07:50 -0400 Original-Received: by nf-out-0910.google.com with SMTP id c7so528255nfi.26 for ; Sat, 09 Aug 2008 08:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=POZNORV0j0a1SZw27czmykW9HJlvPiSeTLt+jjuuipY=; b=PJB7wc2LLetwWQV1WSNSKP2e9wU78LWdP2sxKw8X3ZniU1cijAMeJO5fVvdtRqGRBj GLQaaeimimWtsO6Fx6sc7oLkmLL0OWNtn7QugKZE839RGYWVjcDuHjUHJiSMn7WRNmGk wBtgWEl9IXRUS3T1HiomOLPZIngms7KGvuP9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Duj+ntEeVbwMqC4qBeXIdcSL/39XY9xdACPB00iUPxzbTWF6E9qDqnVl2eeaYvRW1H kO/+pTmiDoHEyG6ds3Hb6X+Q3YbHOw7KNM2J/T7/LCIGaq2SEtdmxMwWQTKXAOW3vw63 jDIBEBFT4gFdFcpYpdCdCq9zB+HGBVZslLDpk= Original-Received: by 10.210.51.18 with SMTP id y18mr6960468eby.160.1218294467815; Sat, 09 Aug 2008 08:07:47 -0700 (PDT) Original-Received: by 10.210.71.14 with HTTP; Sat, 9 Aug 2008 08:07:47 -0700 (PDT) In-Reply-To: <489DB17D.9020003@gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:102234 Archived-At: On Sat, Aug 9, 2008 at 17:02, Lennart Borgman (gmail) wrote: > But I learned something ;-) Yes. That I am an idiot... (defun property-list-keys (plist) (let ((c 0)) (remove-if #'(lambda (ignore) (evenp (incf c))) plist))) Much simpler. BTW, the only "advantage" of my version is that the keys are returned in order. Juanma