/** * Performs a union of this `HashMap` and that `HashMap`. * * @tsplus pipeable-operator HashMap + * @tsplus static HashMap.Aspects union * @tsplus pipeable HashMap union */ export function union(that: HashMap) { return (self: HashMap): HashMap => { const result: HashMap = self.beginMutation that.forEachWithIndex((k, v) => { result.set(k, v) }) return result.endMutation } }