tremor-script 0.12.4

Tremor Script Interpreter
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### The win module contains to get informations about the current
### window and groups in a windowed select statement

## Returns the **current** cardinality of a group by
## statement. When used without a group by it will
## return zero (0).
##
## > ```tremor
## > use std::win;
## > 
## > select { "group#{group[0]}": win::cardinality() }
## > from in
## > group by each([1, 2, 3, 4, 5]) into out;
## > ```
##
## Returns a `integer`
intrinsic fn cardinality(str) as win::cardinality;