export const count = (reducer) => (list) => list.reduce(reducer, 0);
export const incrementIf = (condition) => (acc, value) => condition(value) ? acc + 1 : acc;
export const incrementBy = (computeAmount) => (acc, value) => acc + computeAmount(value);
