emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] seq-let c856843: New macro seq-let, providing destruct


From: Stefan Monnier
Subject: Re: [Emacs-diffs] seq-let c856843: New macro seq-let, providing destructuring support to seq.el
Date: Fri, 01 May 2015 17:14:11 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Wouldn't that be for a difference usage? If not, can you provide an
> example?

You could use it as in

   (pcase-let (((seq a b) [1 2 3]))
     (message "%s %s" a b))

which could return "1 2", tho that depends how you'd define the (seq
...) pattern, obviously.


        Stefan



reply via email to

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