(pairs: [bigint, bigint][])
| 377 | } |
| 378 | |
| 379 | function dedupePairsLocal(pairs: [bigint, bigint][]): [bigint, bigint][] { |
| 380 | const seen = new Set<string>(); |
| 381 | const out: [bigint, bigint][] = []; |
| 382 | for (const p of pairs) { |
| 383 | const k = pairKey(p); |
| 384 | if (!seen.has(k)) { |
| 385 | seen.add(k); |
| 386 | out.push(p); |
| 387 | } |
| 388 | } |
| 389 | return out; |
| 390 | } |
| 391 | |
| 392 | function pairSetEqual(a: [bigint, bigint][], b: [bigint, bigint][]): boolean { |
| 393 | const as = new Set(dedupePairsLocal(a).map(pairKey)); |
no test coverage detected