/** * Sets the specified key/value pair in the map. * * @tsplus static ImmutableMap.Aspects set * @tsplus pipeable ImmutableMap set */ export function set(key: K, value: V) { return (self: ImmutableMap): ImmutableMap => { const map = self.copy.internalMap as Map map.set(key, value) return new ImmutableMap(map) } }