Max

Maximal value

Signature

max(expr: AttrName|(Tuple->Numeric)) -> Aggregator

Examples

max(:qty)
max{|t| t.qty * t.price }
max(->(t){ t.qty * t.price })

Description

Returns the greatest of input values.

Implementation notes

This aggregate function must only be used with comparable types. As of current Alf version, it does not aggregate empty sets correctly.