/** * Maps over the values of the `HashMap` using the specified function. * * @tsplus static HashMap.Aspects map * @tsplus pipeable HashMap map */ export function map(f: (v: V) => A) { return (self: HashMap): HashMap => self.reduceWithIndex(HashMap.empty(), (z, k, v) => z.set(k, f(v))) }