Columnal Documentation: Table of Contents

comparison functions

minimummaximumminimum indexmaximum index
minimum(items)lowest Type: For any types t where Comparable t([t]) -> t

Gets the lowest item in the list.

Lowest is determined in the same way as operator < -- see the documentation for more details.

ExamplesClick an example to insert it
minimum([54, 7, 82])7
minimum(["cat", "aardvark", "bear"])"aardvark"
minimum([])error
maximum(items)highest Type: For any types t where Comparable t([t]) -> t

Gets the highest item in the list.

Highest is determined in the same way as operator < -- see the documentation for more details.

ExamplesClick an example to insert it
maximum([54, 7, 82])82
maximum(["zebra", "wolf", "vole"])"zebra"
maximum([])error
minimum index(items)index of lowest Type: For any types t where Comparable t([t]) -> Number

Gets the index of the lowest item in the list (where the first item is index 1, the second is index 2 and so on).

Lowest is determined in the same way as operator < -- see the documentation for more details.

ExamplesClick an example to insert it
minimum index([54, 82, -7])3
minimum index(["cat", "aardvark", "bear"])2
minimum index([])error
maximum index(items)index of highest Type: For any types t where Comparable t([t]) -> Number

Gets the index of the highest item in the list (where the first item is index 1, the second is index 2 and so on).

Highest is determined in the same way as operator < -- see the documentation for more details.

ExamplesClick an example to insert it
maximum index([54, 82, -7])2
maximum index(["cat", "aardvark", "bear"])1
maximum index([])error