unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* pcase without code duplication
@ 2021-04-23  2:45 michael-franzese
  2021-04-23  3:24 ` Óscar Fuentes
  0 siblings, 1 reply; 5+ messages in thread
From: michael-franzese @ 2021-04-23  2:45 UTC (permalink / raw)
  To: Help Gnu Emacs

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
  (_ ... ) )




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-23  4:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-23  2:45 pcase without code duplication michael-franzese
2021-04-23  3:24 ` Óscar Fuentes
2021-04-23  3:45   ` michael-franzese
2021-04-23  4:01     ` Stefan Monnier
2021-04-23  3:51   ` [External] : " Drew Adams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).