emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New assoc-let package


From: Ted Zlatanov
Subject: Re: New assoc-let package
Date: Fri, 05 Dec 2014 21:27:52 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Fri, 05 Dec 2014 10:49:42 +0800 Leo Liu <address@hidden> wrote: 

LL> On 2014-12-05 00:36 +0000, Artur Malabarba wrote:
>> Indeed, I was doing almost the same thing initially (just using cl-flet
>> instead), but eventually even that grew tiresome.

LL> Or do something like this:

LL> (pcase (alist-get-keys alist key1 key2 key3)
LL>   (`(,val1 ,val2 ,val3) body))

That's neat but you need to select the keys in advance.  I like the
automagic of Artur's approach better, as long as the alist is small.

Ted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]