up: BOX     index Zimbu documentation

PIECE BOX.MaxMin<Titem> @public

summary

     

Provide max() and min() for any Box that has $Iterator() and the item supports Compare().

$max() Titem @public  Return the maximum value in the Box.
$min() Titem @public  Return the minimum value in the Box.
 

members (alphabetically)

     

FUNC $max() Titem @public

     

Return the maximum value in the Box.

When the Box is empty returns NIL/zero/false.

FUNC $min() Titem @public

     

Return the minimum value in the Box.

When the Box is empty returns NIL/zero/false.

license

      Copyright 2013 Bram Moolenaar All Rights Reserved.

      Licensed under the Apache License, Version 2.0. See the LICENSE file or obtain a copy at: http://www.apache.org/licenses/LICENSE-2.0