/** * Sets the specified key to the specified value using the internal hashing * function. * * @tsplus static HashMap.Aspects set * @tsplus pipeable HashMap set */ export function set(key: K, value: V) { return (self: HashMap): HashMap => self.modify(key, () => Maybe.some(value)) }