diff options
author | Nicolas Petton <nicolas@petton.fr> | 2015-09-10 23:49:56 +0200 |
---|---|---|
committer | Nicolas Petton <nicolas@petton.fr> | 2015-09-11 00:09:35 +0200 |
commit | 8aa0386420f9d982b99568f27a5953dfc737640e (patch) | |
tree | ce356f3c18830d4020f3231957020074383cd7ef /lisp/emacs-lisp/cl.el | |
parent | 5a92d97802e095c541a644bdaca00755942af821 (diff) | |
download | emacs-8aa0386420f9d982b99568f27a5953dfc737640e.tar.gz emacs-8aa0386420f9d982b99568f27a5953dfc737640e.tar.bz2 emacs-8aa0386420f9d982b99568f27a5953dfc737640e.zip |
Add seq-find
This function is similar to `seq-some' but returns the found element.
In the cases where nil can be the found element, a sentinel optional
argument can be provided to avoid ambiguities.
* lisp/emacs-lisp/seq.el (seq-find): New function.
* test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'.
* doc/lispref/sequences.texi (Sequence Functions): Add documentation for
seq-find.
Diffstat (limited to 'lisp/emacs-lisp/cl.el')
0 files changed, 0 insertions, 0 deletions