summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNicolas Petton <nicolas@petton.fr>2015-06-30 18:36:40 +0200
committerNicolas Petton <nicolas@petton.fr>2015-06-30 18:40:19 +0200
commita30642f0652d1935b6e7dbb3d33c495389b6ddca (patch)
treec780960e8fb6b2e3e12516578bd6b5060c486116 /doc
parentb1047c3b422f5280a9de6c56b1ba77e5dbc185ee (diff)
downloademacs-a30642f0652d1935b6e7dbb3d33c495389b6ddca.tar.gz
* doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/sequences.texi34
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:
@end example
@end defun
+@defun seq-min sequence
+ This function returns the smallest element of
+@var{sequence}. @var{sequence} must be a sequence of numbers or
+markers.
+
+@example
+@group
+(seq-min [3 1 2])
+@result{} 1
+@end group
+@group
+(seq-min "Hello")
+@result{} 72
+@end group
+@end example
+@end defun
+
+@defun seq-max sequence
+ This function returns the largest element of
+@var{sequence}. @var{sequence} must be a sequence of numbers or
+markers.
+
+@example
+@group
+(seq-max [1 3 2])
+@result{} 3
+@end group
+@group
+(seq-max "Hello")
+@result{} 111
+@end group
+@end example
+@end defun
+
@defmac seq-doseq (var sequence) body@dots{}
@cindex sequence iteration
This macro is like @code{dolist}, except that @var{sequence} can be a list,