aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/sequences.texi9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index 6292c02a21d..b85d5d4c1b1 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -578,15 +578,14 @@ value is the value returned by @var{predicate}.
578@end example 578@end example
579@end defun 579@end defun
580 580
581@defun seq-find predicate sequence &optional sentinel 581@defun seq-find predicate sequence &optional default
582 This function returns the first element for which @var{predicate} 582 This function returns the first element for which @var{predicate}
583returns non-@code{nil} in @var{sequence}. If no element matches 583returns non-@code{nil} in @var{sequence}. If no element matches
584@var{predicate}, @var{sentinel} is returned if non-@code{nil}, 584@var{predicate}, @var{default} is returned.
585@code{nil} otherwise.
586 585
587Note that this function has an ambiguity if the found element is 586Note that this function has an ambiguity if the found element is
588@code{nil}, and if no @var{sentinel} is specified, as it cannot be 587identical to @var{default}, as it cannot be known if an element was
589known if an element was found or not. 588found or not.
590 589
591@example 590@example
592@group 591@group