Skip to content
Snippets Groups Projects
Commit ca5dc259 authored by David Sehnal's avatar David Sehnal
Browse files

OrderedSet intersection tweak

parent b4aab810
Branches
Tags
No related merge requests found
......@@ -170,6 +170,7 @@ function intersectSI(a: S, b: I) {
const start = I.start(r), end = I.end(r);
const resultSize = end - start;
if (!resultSize) return Empty;
if (resultSize === a.length) return a;
const indices = new Int32Array(resultSize);
let offset = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment