Improve the semantic of seq-some
commitaeb1d6bdd54671a2e2b7dfbd22fcfe1aa19b36d1
authorNicolas Petton <nicolas@petton.fr>
Sat, 5 Sep 2015 22:26:17 +0000 (6 00:26 +0200)
committerNicolas Petton <nicolas@petton.fr>
Sat, 5 Sep 2015 22:44:39 +0000 (6 00:44 +0200)
tree117e8f076fe9edb808781730f09122403855313d
parentc36663d866e64fcb4b0d94742009d84366e9b54f
Improve the semantic of seq-some

Update seq-some to return non-nil if the predicate returns non-nil for
any element of the seq, in which case the returned value is the one
returned by the predicate.

* lisp/emacs-lisp/seq.el (seq-some): Update the function and its
  docstring.
* test/automated/seq-tests.el (test-seq-some): Add a regression test.
* doc/lispref/sequences.texi (Sequence Functions): Update the
  documentation for seq-some.
doc/lispref/sequences.texi
lisp/emacs-lisp/seq.el
test/automated/seq-tests.el