Sha256: 46750bf4c5676713a9a999076559d078082fb2f77ec0f3d0edb8f9cd222ce06d

Contents?: true

Size: 383 Bytes

Versions: 6

Compression:

Stored size: 383 Bytes

Contents

# 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.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alf-shell-0.16.4 doc/txt/max.txt
alf-shell-0.16.3 doc/txt/max.txt
alf-shell-0.16.2 doc/txt/max.txt
alf-shell-0.16.1 doc/txt/max.txt
alf-shell-0.16.0 doc/txt/max.txt
alf-shell-0.15.0 doc/txt/max.txt