Function: pcase--match
pcase--match is a byte-compiled function defined in pcase.el.gz.
Signature
(pcase--match VAL UPAT)
Documentation
Build a MATCH structure, hoisting all ors and ands outside.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/pcase.el.gz
(defun pcase--match (val upat)
"Build a MATCH structure, hoisting all `or's and `and's outside."
(cond
;; Hoist or/and patterns into or/and matches.
((memq (car-safe upat) '(or and))
`(,(car upat)
,@(mapcar (lambda (upat)
(pcase--match val upat))
(cdr upat))))
(t
`(match ,val . ,upat))))