(values, ...others)
| 1323 | } |
| 1324 | |
| 1325 | function intersection(values, ...others) { |
| 1326 | values = new InternSet(values); |
| 1327 | others = others.map(set$2); |
| 1328 | out: for (const value of values) { |
| 1329 | for (const other of others) { |
| 1330 | if (!other.has(value)) { |
| 1331 | values.delete(value); |
| 1332 | continue out; |
| 1333 | } |
| 1334 | } |
| 1335 | } |
| 1336 | return values; |
| 1337 | } |
| 1338 | |
| 1339 | function set$2(values) { |
| 1340 | return values instanceof InternSet ? values : new InternSet(values); |