(values, ...others)
| 1299 | } |
| 1300 | |
| 1301 | function difference(values, ...others) { |
| 1302 | values = new InternSet(values); |
| 1303 | for (const other of others) { |
| 1304 | for (const value of other) { |
| 1305 | values.delete(value); |
| 1306 | } |
| 1307 | } |
| 1308 | return values; |
| 1309 | } |
| 1310 | |
| 1311 | function disjoint(values, other) { |
| 1312 | const iterator = other[Symbol.iterator](), set = new InternSet(); |