/** * @tsplus static SortedMap.Aspects reduce * @tsplus pipeable SortedMap reduce */ export function reduce(z: Z, f: (acc: Z, v: V) => Z) { return (self: SortedMap): Z => self.reduceWithIndex(z, (acc, _, v) => f(acc, v)) }