Closed mattsgarlata closed 5 years ago
I forgot to mention: this is a forest tree. FWIW here's what it looks like in Scoreboard
I think this would be a breaking change. See https://github.com/SpiderStrategies/kalpa-tree/issues/57
get without args returns root, and since this is a forest tree it returns an array of all the root nodes.
Oh, so if it's a forest it returns an array of all the roots? That makes sense so I'll just close this out. I wasn't thinking clearly about this one.
When I call
tree.get()
with no arguments, the returned value is an array with one node.I already coded a workaround in Scoreboard so this isn't high priority, but it seems like this method should not be returning an array.
Here's the tree data: