Function: seq--pcase-macroexpander

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

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 /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
;; Could not find source code, showing raw function object.
#[(&rest patterns)
  (`(and (pred seqp) ,@(seq--make-pcase-bindings patterns))) (t) nil
  "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."]