Docstring improvement for seq-some (bug#25129)
* lisp/emacs-lisp/seq.el (seq-some): Make the docstring less confusing regarding the returned value.
This commit is contained in:
parent
fe905647b5
commit
05e773a460
1 changed files with 2 additions and 1 deletions
|
@ -316,7 +316,8 @@ If SEQUENCE is empty, return INITIAL-VALUE and FUNCTION is not called."
|
|||
t))
|
||||
|
||||
(cl-defgeneric seq-some (pred sequence)
|
||||
"Return the first value for which if (PRED element) is non-nil for in SEQUENCE."
|
||||
"Return non-nil if PRED is satisfied for at least one element of SEQUENCE.
|
||||
If so, return the first non-nil value returned by PRED."
|
||||
(catch 'seq--break
|
||||
(seq-doseq (elt sequence)
|
||||
(let ((result (funcall pred elt)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue