From ffd4771560bf91eb4f52970b9e7119ff7b804aed Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 16 Dec 2017 16:54:32 +0200 Subject: [PATCH] * doc/lispref/sequences.texi (Sequence Functions): Improve indexing. --- doc/lispref/sequences.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 4fba880803e..8d56e022d8f 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi @@ -425,6 +425,7 @@ useful example of @code{sort}. @cindex sequence functions in seq @cindex seq library +@cindex sequences, generalized The @file{seq.el} library provides the following additional sequence manipulation macros and functions, prefixed with @code{seq-}. To use them, you must first load the @file{seq} library. @@ -859,6 +860,7 @@ it is a function of two arguments to use instead of the default @code{equal}. @end defun @defun seq-subseq sequence start &optional end +@cindex sub-sequence This function returns a subset of @var{sequence} from @var{start} to @var{end}, both integers (@var{end} defaults to the last element). If @var{start} or @var{end} is negative, it counts from the end of @@ -926,6 +928,8 @@ contain less elements than @var{n}. @var{n} must be an integer. If @end defun @defun seq-intersection sequence1 sequence2 &optional function +@cindex sequences, intersection of +@cindex intersection of sequences This function returns a list of the elements that appear both in @var{sequence1} and @var{sequence2}. If the optional argument @var{function} is non-@code{nil}, it is a function of two arguments to @@ -972,6 +976,10 @@ of @var{sequence}. Keys are compared using @code{equal}. @end defun @defun seq-into sequence type +@cindex convert sequence to another type +@cindex list to vector +@cindex vector to list +@cindex string to vector This function converts the sequence @var{sequence} into a sequence of type @var{type}. @var{type} can be one of the following symbols: @code{vector}, @code{string} or @code{list}. @@ -993,6 +1001,8 @@ of type @var{type}. @var{type} can be one of the following symbols: @end defun @defun seq-min sequence +@cindex minimum value of sequence +@cindex sequence minimum This function returns the smallest element of @var{sequence}. The elements of @var{sequence} must be numbers or markers (@pxref{Markers}). @@ -1010,6 +1020,8 @@ elements of @var{sequence} must be numbers or markers @end defun @defun seq-max sequence +@cindex maximum value of sequence +@cindex sequence maximum This function returns the largest element of @var{sequence}. The elements of @var{sequence} must be numbers or markers. @@ -1027,6 +1039,7 @@ elements of @var{sequence} must be numbers or markers. @defmac seq-doseq (var sequence) body@dots{} @cindex sequence iteration +@cindex iteration over vector or string This macro is like @code{dolist} (@pxref{Iteration, dolist}), except that @var{sequence} can be a list, vector or string. This is primarily useful for side-effects. -- 2.39.2