mirror of https://github.com/deavmi/niknaks
parent
11fd2f856e
commit
4a431c43d1
|
@ -830,15 +830,25 @@ public class Tree(T)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(found)
|
if(found)
|
||||||
// {
|
{
|
||||||
// this.children = this.children.removeResize(idx, true, true);
|
this.children = this.children.removeResize(idx);
|
||||||
// return true;
|
return true;
|
||||||
// }
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public T opIndex(size_t idx)
|
||||||
|
{
|
||||||
|
return idx < this.children.length ? this.children[idx].getValue() : T.init;
|
||||||
|
}
|
||||||
|
|
||||||
|
public T getValue()
|
||||||
|
{
|
||||||
|
return this.value;
|
||||||
|
}
|
||||||
|
|
||||||
public T[] dfs
|
public T[] dfs
|
||||||
(
|
(
|
||||||
InclusionStratergy!(T) strat = toDelegate(&Always!(T)),
|
InclusionStratergy!(T) strat = toDelegate(&Always!(T)),
|
||||||
|
|
Loading…
Reference in New Issue