* lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.
This commit is contained in:
parent
6a4158022e
commit
abe594c099
1 changed files with 2 additions and 0 deletions
|
@ -298,6 +298,8 @@ any kind of error."
|
|||
|
||||
;;;###autoload
|
||||
(defmacro pcase-dolist (spec &rest body)
|
||||
"Like `dolist' but where the binding can be a `pcase' pattern.
|
||||
\n(fn (PATTERN LIST) BODY...)"
|
||||
(declare (indent 1) (debug ((pcase-PAT form) body)))
|
||||
(if (pcase--trivial-upat-p (car spec))
|
||||
`(dolist ,spec ,@body)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue