/** * Mutates the `HashMap` within the context of the provided function. * * @tsplus static HashMap.Aspects mutate * @tsplus pipeable HashMap mutate */ export function mutate_(f: (self: HashMap) => void) { return (self: HashMap): HashMap => { const transient = self.beginMutation f(transient) return transient.endMutation } }