diff options
| author | Nicolas Petton | 2015-09-06 00:05:52 +0200 |
|---|---|---|
| committer | Nicolas Petton | 2015-09-06 00:05:52 +0200 |
| commit | c36663d866e64fcb4b0d94742009d84366e9b54f (patch) | |
| tree | 6ff19468ec463376c8ef05f14923c4220f0247b5 /doc | |
| parent | b8147621ec91e1ce8e34d55141bb75921dbfc080 (diff) | |
| download | emacs-c36663d866e64fcb4b0d94742009d84366e9b54f.tar.gz emacs-c36663d866e64fcb4b0d94742009d84366e9b54f.zip | |
Rename seq-some-p to seq-some and seq-contains-p to seq-contains
* lisp/emacs-lisp/seq.el (seq-some, seq-contains): Rename the functions
without the "-p" prefix.
* test/automated/seq-tests.el (test-seq-some, test-seq-contains): Update
the tests accordingly.
* doc/lispref/sequences.texi (Sequence Functions): Update the
documentation for seq.el.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/sequences.texi | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 12ed881dadb..22ae9959602 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -557,17 +557,17 @@ calling @var{function}. | |||
| 557 | @end example | 557 | @end example |
| 558 | @end defun | 558 | @end defun |
| 559 | 559 | ||
| 560 | @defun seq-some-p predicate sequence | 560 | @defun seq-some predicate sequence |
| 561 | This function returns the first member of sequence for which @var{predicate} | 561 | This function returns the first member of sequence for which @var{predicate} |
| 562 | returns non-@code{nil}. | 562 | returns non-@code{nil}. |
| 563 | 563 | ||
| 564 | @example | 564 | @example |
| 565 | @group | 565 | @group |
| 566 | (seq-some-p #'numberp ["abc" 1 nil]) | 566 | (seq-some #'numberp ["abc" 1 nil]) |
| 567 | @result{} 1 | 567 | @result{} 1 |
| 568 | @end group | 568 | @end group |
| 569 | @group | 569 | @group |
| 570 | (seq-some-p #'numberp ["abc" "def"]) | 570 | (seq-some #'numberp ["abc" "def"]) |
| 571 | @result{} nil | 571 | @result{} nil |
| 572 | @end group | 572 | @end group |
| 573 | @end example | 573 | @end example |
| @@ -583,7 +583,7 @@ to every element of @var{sequence} returns non-@code{nil}. | |||
| 583 | @result{} t | 583 | @result{} t |
| 584 | @end group | 584 | @end group |
| 585 | @group | 585 | @group |
| 586 | (seq-some-p #'numberp [2 4 "6"]) | 586 | (seq-some #'numberp [2 4 "6"]) |
| 587 | @result{} nil | 587 | @result{} nil |
| 588 | @end group | 588 | @end group |
| 589 | @end example | 589 | @end example |
| @@ -621,18 +621,18 @@ according to @var{function}, a function of two arguments that returns | |||
| 621 | non-@code{nil} if the first argument should sort before the second. | 621 | non-@code{nil} if the first argument should sort before the second. |
| 622 | @end defun | 622 | @end defun |
| 623 | 623 | ||
| 624 | @defun seq-contains-p sequence elt &optional function | 624 | @defun seq-contains sequence elt &optional function |
| 625 | This function returns the first element in @var{sequence} that is equal to | 625 | This function returns the first element in @var{sequence} that is equal to |
| 626 | @var{elt}. If the optional argument @var{function} is non-@code{nil}, | 626 | @var{elt}. If the optional argument @var{function} is non-@code{nil}, |
| 627 | it is a function of two arguments to use instead of the default @code{equal}. | 627 | it is a function of two arguments to use instead of the default @code{equal}. |
| 628 | 628 | ||
| 629 | @example | 629 | @example |
| 630 | @group | 630 | @group |
| 631 | (seq-contains-p '(symbol1 symbol2) 'symbol1) | 631 | (seq-contains '(symbol1 symbol2) 'symbol1) |
| 632 | @result{} symbol1 | 632 | @result{} symbol1 |
| 633 | @end group | 633 | @end group |
| 634 | @group | 634 | @group |
| 635 | (seq-contains-p '(symbol1 symbol2) 'symbol3) | 635 | (seq-contains '(symbol1 symbol2) 'symbol3) |
| 636 | @result{} nil | 636 | @result{} nil |
| 637 | @end group | 637 | @end group |
| 638 | @end example | 638 | @end example |