MCPcopy Create free account
hub / github.com/microsoft/SandDance / bisect

Function bisect

docs/app/js/sanddance-app.js:141296–141307  ·  view source on GitHub ↗
(range, array4)

Source from the content-addressed store, hash-verified

141294 for(let i = 0, n = size; i < n; ++i)index[i] = map[index[i]];
141295 }
141296 function bisect(range, array4) {
141297 let n;
141298 if (array4) n = array4.length;
141299 else {
141300 array4 = value;
141301 n = size;
141302 }
141303 return [
141304 (0, _d3Array.bisectLeft)(array4, range[0], 0, n),
141305 (0, _d3Array.bisectRight)(array4, range[1], 0, n)
141306 ];
141307 }
141308 return {
141309 insert: insert,
141310 remove: remove,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected