Same ⟨pattern variable⟩ apparing two or more times Amirouche (26 Dec 2022 11:44 UTC)
Re: Same ⟨pattern variable⟩ apparing two or more times Amirouche (26 Dec 2022 11:47 UTC)
Re: Same ⟨pattern variable⟩ apparing two or more times Marc Nieper-Wißkirchen (26 Dec 2022 12:47 UTC)
Re: Same ⟨pattern variable⟩ apparing two or more times Marc Nieper-Wißkirchen (26 Dec 2022 16:12 UTC)

Re: Same ⟨pattern variable⟩ apparing two or more times Amirouche 26 Dec 2022 11:47 UTC

> What should happen when the same ⟨pattern variable⟩ appears more than one time in a pattern?

For example

  (match '(42 42 nothing)
   ((,a ,a . rest) a))

In my opinion, the above expression should eval to 42.

What do you think?