mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-10 16:20:17 -08:00
Add new predicates for sequence lengths
* doc/lispref/sequences.texi (Sequence Functions): Document them. * lisp/emacs-lisp/byte-opt.el (side-effect-free-fns): Mark them as side-effect-free. * lisp/emacs-lisp/shortdoc.el (list): Mention them. * src/fns.c (Flength): Mention them in the doc string. (length_internal): New function. (Flength_less, Flength_greater, Flength_equal): New defuns. (syms_of_fns): Sym them.
This commit is contained in:
parent
714ca849ba
commit
0f790464d5
6 changed files with 135 additions and 2 deletions
|
|
@ -618,6 +618,12 @@ There can be any number of :example/:result elements."
|
|||
"Data About Lists"
|
||||
(length
|
||||
:eval (length '(a b c)))
|
||||
(length<
|
||||
:eval (lenth< '(a b c) 1))
|
||||
(length>
|
||||
:eval (lenth> '(a b c) 1))
|
||||
(length=
|
||||
:eval (lenth> '(a b c) 3))
|
||||
(safe-length
|
||||
:eval (safe-length '(a b c))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue