(self: HashSet<V0>, that: HashSet<V1>)
| 114 | |
| 115 | /** @internal */ |
| 116 | export const union = <V0, V1>(self: HashSet<V0>, that: HashSet<V1>): HashSet<V0 | V1> => { |
| 117 | const map = keyMap(self) |
| 118 | let result = map as HashMap.HashMap<V0 | V1, boolean> |
| 119 | for (const value of that) { |
| 120 | result = HashMap.set(result, value, true) |
| 121 | } |
| 122 | return makeImpl(result) |
| 123 | } |
| 124 | |
| 125 | /** @internal */ |
| 126 | export const intersection = <V0, V1>(self: HashSet<V0>, that: HashSet<V1>): HashSet<V0 & V1> => { |
no test coverage detected