[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.
- pcase on multiple conditions, Heime, 2022/10/28
- Re: pcase on multiple conditions, Jean Louis, 2022/10/28
- Re: pcase on multiple conditions, Michael Heerdegen, 2022/10/28
- Re: pcase on multiple conditions, Jean Louis, 2022/10/28
- Re: pcase on multiple conditions, Michael Heerdegen, 2022/10/28
- Re: pcase on multiple conditions, Stefan Monnier, 2022/10/28
- Re: pcase on multiple conditions, Emanuel Berg, 2022/10/30
- Re: pcase on multiple conditions, Jean Louis, 2022/10/30
- Re: pcase on multiple conditions, Emanuel Berg, 2022/10/30
Re: pcase on multiple conditions, Emanuel Berg, 2022/10/30