@calcit/ternary-tree 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/list.mjs +1 -1
- package/package.json +1 -1
package/lib/list.mjs
CHANGED
@@ -99,7 +99,7 @@ export function initTernaryTreeListFromRange(xs, from, to) {
|
|
99
99
|
let x = xs[idx];
|
100
100
|
ys[idx - from] = { kind: TernaryTreeKind.ternaryTreeLeaf, size: 1, value: x };
|
101
101
|
}
|
102
|
-
return makeTernaryTreeList(
|
102
|
+
return makeTernaryTreeList(ys.length, 0, ys);
|
103
103
|
}
|
104
104
|
export function initEmptyTernaryTreeList() {
|
105
105
|
return { kind: TernaryTreeKind.ternaryTreeBranch, size: 0, depth: 1, middle: emptyBranch, left: emptyBranch, right: emptyBranch };
|