diff options
author | Nicolas Petton <nicolas@petton.fr> | 2015-09-28 21:11:05 +0200 |
---|---|---|
committer | Nicolas Petton <nicolas@petton.fr> | 2015-09-28 21:15:58 +0200 |
commit | f0b71429b9fbfb5dc5a561321de42a39fc176809 (patch) | |
tree | 221fcf3f39fb586596838b69517c60ab7be19563 /lisp/emacs-lisp | |
parent | 5526561b0c8416cbae492bc246eacd30f7b1daa8 (diff) | |
download | emacs-f0b71429b9fbfb5dc5a561321de42a39fc176809.tar.gz emacs-f0b71429b9fbfb5dc5a561321de42a39fc176809.tar.bz2 emacs-f0b71429b9fbfb5dc5a561321de42a39fc176809.zip |
Better documentation for seq-some
* doc/lispref/sequences.texi:
* lisp/emacs-lisp/seq.el: Update the documentation of seq-some to
guarantee that the returned value is the first non-nil value that
resulted from applying the predicate.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/seq.el | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index e0f17c0335d..a63447d3243 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el @@ -261,8 +261,7 @@ If SEQ is empty, return INITIAL-VALUE and FUNCTION is not called." t)) (cl-defgeneric seq-some (pred seq) - "Return non-nil if (PRED element) is non-nil for any element in SEQ, nil otherwise. -If so, return the non-nil value returned by PRED." + "Return the first value for which if (PRED element) is non-nil for in SEQ." (catch 'seq--break (seq-doseq (elt seq) (let ((result (funcall pred elt))) |