forked from axiom-team/g1-stats
7 lines
130 B
Plaintext
7 lines
130 B
Plaintext
|
def accumulates(f):
|
||
|
foreach .[] as $row
|
||
|
(0;
|
||
|
. + ($row | f) ;
|
||
|
. as $x | $row | (f = $x));
|
||
|
accumulates(.nbrMembers)
|