min
Aggregate Function
min — minimum value of input values
Synopsis
min(number) -> number
Description
The min aggregate function computes the minimum value of its input.
Examples
Minimum value of simple sequence:
min(this)
1
2
3
4
Loading...
echo '1
2
3
4' \
| super -z -c 'min(this)' -
Continuous minimum of simple sequence:
yield min(this)
1
2
3
4
Loading...
echo '1
2
3
4' \
| super -z -c 'yield min(this)' -
Unrecognized types are ignored:
min(this)
1
2
3
4
"foo"
Loading...
echo '1
2
3
4
"foo"' \
| super -z -c 'min(this)' -
Minimum value within buckets grouped by key:
min(a) by k | sort
{a:1,k:1}
{a:2,k:1}
{a:3,k:2}
{a:4,k:2}
Loading...
echo '{a:1,k:1}
{a:2,k:1}
{a:3,k:2}
{a:4,k:2}' \
| super -z -c 'min(a) by k | sort' -