/** * Applies the specified function to the entries of the `HashMap`.a * * @tsplus static HashMap.Aspects forEachWithIndex * @tsplus pipeable HashMap forEachWithIndex */ export function forEachWithIndex(f: (k: K, v: V) => void) { return (self: HashMap): void => self.reduceWithIndex(undefined as void, (_, key, value) => f(key, value)) }