help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: "cl-case" with strings


From: Stefan Monnier
Subject: Re: "cl-case" with strings
Date: Thu, 04 Feb 2016 17:30:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> The instructions for `pcase' tho isn't exactly like
> reading on the milk pack - perhaps the OP or someone
> else can provide an example?

    (pcase foo
     ("toto" do-the-toto-thing)
     ("titi" do-the-titi-thing))

For some older Emacsen, IIRC, it might be necessary to do

    (pcase foo
     (`"toto" do-the-toto-thing)
     (`"titi" do-the-titi-thing))


-- Stefan




reply via email to

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