Function: seq--pcase-macroexpander

seq--pcase-macroexpander is a function defined in transient.el.

Signature

(seq--pcase-macroexpander &rest PATTERNS)

Documentation

Build a pcase pattern that matches elements of SEQUENCE.

The pcase pattern will match each element of PATTERNS against the corresponding element of SEQUENCE.

Extra elements of the sequence are ignored if fewer PATTERNS are given, and the match does not fail.

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;; Closure converted to defun by helpful.
(defun seq--pcase-macroexpander
    (&rest patterns)
  "Build a `pcase' pattern that matches elements of SEQUENCE.\n\nThe `pcase' pattern will match each element of PATTERNS against the\ncorresponding element of SEQUENCE.\n\nExtra elements of the sequence are ignored if fewer PATTERNS are\ngiven, and the match does not fail."
  `(and
    (pred seqp)
    ,@(seq--make-pcase-bindings patterns)))