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

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

Re: pcase on multiple conditions


From: Heime
Subject: Re: pcase on multiple conditions
Date: Fri, 28 Oct 2022 09:57:11 +0000

------- Original Message -------
On Friday, October 28th, 2022 at 7:44 AM, Michael Heerdegen 
<michael_heerdegen@web.de> wrote:


> Jean Louis bugs@gnu.support writes:
> 
> > * Heime heimeborgia@protonmail.com [2022-10-28 09:49]:
> > 
> > > Is this the way to test for two values to perform the same operation?
> > > 
> > > (pcase complt
> > > 
> > > ((or 3 4)
> > > 
> > > (myfunc)))
> > 
> > With `or' it will become true if any of values is true.
> 
> 
> `pcase' patterns are not values. Your interpretation of the semantics of 
> this` or` pattern is wrong.
> 
> Michael.

I want to call "myfunc" when "complt" has value 3 or 4.



reply via email to

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