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

OrderedSet intersection tweak

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