[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lisp style question
From: |
Pascal J. Bourguignon |
Subject: |
Re: lisp style question |
Date: |
Sun, 05 Dec 2010 23:31:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
RG <rNOSPAMon@flownet.com> writes:
> In article
> <6e2fe51c-ff4c-429f-b221-a3cbe23e958f@n2g2000pre.googlegroups.com>,
> Katalin Sinkov <lispstylist@gmail.com> wrote:
>
>> how to conveniently costruct the list that goes with getf ?
>
> You can't construct anything with GETF. GETF is an accessor.
This is not correct. GETF is special:
CL-USER> (let ((plist '()))
(setf (getf plist :k1) 1
(getf plist :k2) 2)
plist)
(:K2 2 :K1 1)
Setfers are able to do such things.
--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.