mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Better docstrings in seq.el and map.el
* lisp/emacs-lisp/map.el: * lisp/emacs-lisp/seq.el: Improve the docstring for the pcase patterns.
This commit is contained in:
parent
e668176e7d
commit
b5e2d74950
2 changed files with 15 additions and 8 deletions
|
|
@ -46,11 +46,15 @@
|
|||
|
||||
(pcase-defmacro map (&rest args)
|
||||
"pcase pattern matching map elements.
|
||||
Matches if the object is a map (list, hash-table or array), and
|
||||
binds values from ARGS to their corresponding elements of the map.
|
||||
|
||||
ARGS can be a list elements of the form (KEY PAT), in which case
|
||||
KEY in an unquoted form.
|
||||
Matches if the object is a map (list, hash-table or array), and
|
||||
each PATTERN matches the corresponding elements of the map.
|
||||
|
||||
Supernumerary elements of the map are ignore if less ARGS are
|
||||
given, and the match does not fail.
|
||||
|
||||
ARGS can be a list of the form (KEY PAT), in which case KEY in an
|
||||
unquoted form.
|
||||
|
||||
ARGS can also be a list of symbols, which stands for ('SYMBOL
|
||||
SYMBOL)."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue