emacs-devel
[Top][All Lists]
Advanced

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

Re: New jrpc.el JSONRPC library


From: Stefan Monnier
Subject: Re: New jrpc.el JSONRPC library
Date: Mon, 21 May 2018 10:42:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Nice, i didn't know about that. Does it have an equivalent to
> &allow-other-keys and &rest?

It behaves as if &allow-other-keys is always given currently.
As for &rest you can do

    (pcase-let* ((`(,first . ,(and rest (map foo bar)))
                  '(0 (foo . 1) (bar . 2))))
      (list first rest foo bar))
    =>
    (0 ((foo . 1) (bar . 2)) 1 2)

At that point, the readability suffers, tho.


-- Stefan



reply via email to

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