]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/sequences.texi: Add documentation for seq-min and seq-max.
authorNicolas Petton <nicolas@petton.fr>
Tue, 30 Jun 2015 16:36:40 +0000 (18:36 +0200)
committerNicolas Petton <nicolas@petton.fr>
Tue, 30 Jun 2015 16:40:19 +0000 (18:40 +0200)
doc/lispref/sequences.texi

index 72976b18952196e0940ec57372da0028cf47aab6..eb152283fbb5dcb44989a9b8ad35cc3cafd20d0d 100644 (file)
@@ -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,