reduce
reduce<
A,B>(init,f): <K>(m) =>B
Defined in: Data/Dict.ts:432
Folds the dictionary into a single value by applying f to each value in insertion order.
When you also need the key, use reduceWithKey.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”B
(acc, value) => B
Returns
Section titled “Returns”<K>(m) => B