diff options
| author | Nicolas Petton | 2015-06-30 18:36:40 +0200 |
|---|---|---|
| committer | Nicolas Petton | 2015-06-30 18:40:19 +0200 |
| commit | a30642f0652d1935b6e7dbb3d33c495389b6ddca (patch) | |
| tree | c780960e8fb6b2e3e12516578bd6b5060c486116 | |
| parent | b1047c3b422f5280a9de6c56b1ba77e5dbc185ee (diff) | |
| download | emacs-a30642f0652d1935b6e7dbb3d33c495389b6ddca.tar.gz emacs-a30642f0652d1935b6e7dbb3d33c495389b6ddca.zip | |
* doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.
| -rw-r--r-- | doc/lispref/sequences.texi | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 72976b18952..eb152283fbb 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -790,6 +790,40 @@ of type @var{type}. @var{type} can be one of the following symbols: | |||
| 790 | @end example | 790 | @end example |
| 791 | @end defun | 791 | @end defun |
| 792 | 792 | ||
| 793 | @defun seq-min sequence | ||
| 794 | This function returns the smallest element of | ||
| 795 | @var{sequence}. @var{sequence} must be a sequence of numbers or | ||
| 796 | markers. | ||
| 797 | |||
| 798 | @example | ||
| 799 | @group | ||
| 800 | (seq-min [3 1 2]) | ||
| 801 | @result{} 1 | ||
| 802 | @end group | ||
| 803 | @group | ||
| 804 | (seq-min "Hello") | ||
| 805 | @result{} 72 | ||
| 806 | @end group | ||
| 807 | @end example | ||
| 808 | @end defun | ||
| 809 | |||
| 810 | @defun seq-max sequence | ||
| 811 | This function returns the largest element of | ||
| 812 | @var{sequence}. @var{sequence} must be a sequence of numbers or | ||
| 813 | markers. | ||
| 814 | |||
| 815 | @example | ||
| 816 | @group | ||
| 817 | (seq-max [1 3 2]) | ||
| 818 | @result{} 3 | ||
| 819 | @end group | ||
| 820 | @group | ||
| 821 | (seq-max "Hello") | ||
| 822 | @result{} 111 | ||
| 823 | @end group | ||
| 824 | @end example | ||
| 825 | @end defun | ||
| 826 | |||
| 793 | @defmac seq-doseq (var sequence) body@dots{} | 827 | @defmac seq-doseq (var sequence) body@dots{} |
| 794 | @cindex sequence iteration | 828 | @cindex sequence iteration |
| 795 | This macro is like @code{dolist}, except that @var{sequence} can be a list, | 829 | This macro is like @code{dolist}, except that @var{sequence} can be a list, |