Function: seq-let
seq-let is a macro defined in seq.el.gz.
Signature
(seq-let ARGS SEQUENCE &rest BODY)
Documentation
Bind the variables in ARGS to the elements of SEQUENCE, then evaluate BODY.
ARGS can also include the &rest marker followed by a variable
name to be bound to the rest of SEQUENCE.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
(defmacro seq-let (args sequence &rest body)
"Bind the variables in ARGS to the elements of SEQUENCE, then evaluate BODY.
ARGS can also include the `&rest' marker followed by a variable
name to be bound to the rest of SEQUENCE."
(declare (indent 2) (debug (sexp form body)))
`(pcase-let ((,(seq--make-pcase-patterns args) ,sequence))
,@body))