Skip to content

Commit cc80015

Browse files
committed
Fixes #18
1 parent 3cd98e1 commit cc80015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handbook/aggregates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Aggregates are functions that take an input set and produce an output set, typic
1717
Aggregates are called just like other functions in Eve. For instance, the `count` aggregate is called like so:
1818

1919
```eve
20-
employee-count = count[value: employees]
20+
employee-count = count[given: employees]
2121
```
2222

2323
Aggregates don't always produce a single output value. In some instances, you may want to group your input according to a desired dimension (department, grade, state, country, zip code, etc.) and then aggregate based on those groupings. Extending the example above, we could count the employees in each department:
2424

2525
```eve
26-
employee-count = count[value: employees, per: department]
26+
employee-count = count[given: employees, per: department]
2727
```
2828

2929
Now, `employee-count` will have a count for each department, instead of a single count over all departments. For more complete examples, see the doc files for specific aggregates.

0 commit comments

Comments
 (0)