aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/sequences.texi19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi
index 0a6f4c6623c..8ecae7b58b5 100644
--- a/doc/lispref/sequences.texi
+++ b/doc/lispref/sequences.texi
@@ -743,6 +743,25 @@ it is a function of two arguments to use instead of the default @code{equal}.
743 743
744@end defun 744@end defun
745 745
746@defun seq-position sequence elt &optional function
747 This function returns the index of the first element in
748@var{sequence} that is equal to @var{elt}. If the optional argument
749@var{function} is non-@code{nil}, it is a function of two arguments to
750use instead of the default @code{equal}.
751
752@example
753@group
754(seq-position '(a b c) 'b)
755@result{} 1
756@end group
757@group
758(seq-position '(a b c) 'd)
759@result{} nil
760@end group
761@end example
762@end defun
763
764
746@defun seq-uniq sequence &optional function 765@defun seq-uniq sequence &optional function
747 This function returns a list of the elements of @var{sequence} with 766 This function returns a list of the elements of @var{sequence} with
748duplicates removed. If the optional argument @var{function} is non-@code{nil}, 767duplicates removed. If the optional argument @var{function} is non-@code{nil},