|
From: | Lennart Borgman (gmail) |
Subject: | Re: Property list key names |
Date: | Sat, 09 Aug 2008 17:11:34 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Juanma Barranquero wrote:
On Sat, Aug 9, 2008 at 17:02, Lennart Borgman (gmail) <address@hidden> wrote:But I learned something ;-)Yes. That I am an idiot...
Oh, sorry, I missed that ;-)
(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.
What I am trying to do is finding different CL symbol definitions. I do not know CL at all and it is quite frustrating trying to find the definition sources. (Though I am beginning to understand defstruct etc now.)
Is there already some library for that?
[Prev in Thread] | Current Thread | [Next in Thread] |