math max for math

Returns the maximum of a list of values, or of columns in a table.

Signature

> math max

Input/output types:

inputoutput
list<any>any
tablerecord

Examples

Find the maximum of list of numbers

> [-50 100 25] | math max
100

Find the maxima of the columns of a table

> [{a: 1 b: 3} {a: 2 b: -1}] | math max
╭───┬───╮
│ a │ 2 │
│ b │ 3 │
╰───┴───╯