/** * Reduces the specified state over the values of the `HashMap`. * * @tsplus static HashMap.Aspects reduce * @tsplus pipeable HashMap reduce */ export function reduce(z: Z, f: (z: Z, v: V) => Z) { return (self: HashMap): Z => self.reduceWithIndex(z, (z, _, v) => f(z, v)) }