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

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

pcase without code duplication


From: michael-franzese
Subject: pcase without code duplication
Date: Fri, 23 Apr 2021 04:45:39 +0200

I am using pcase, but am wondering whether I can have pcase
for 0 and 2 do the same things without adding a separate pcase
(0 and duplicating the statements.

(pcase orthogr-region
  (0 ... )    ; same operations as pcase 2
  (1 ... )
  (2 ... )    ; operations
  (_ ... ) )




reply via email to

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