haleyhousellc / arboriculture

A simple tree library written in TypeScript.
https://haleyhousellc.github.io/arboriculture
ISC License
2 stars 0 forks source link

Reconsider find return value #18

Closed haleyga closed 6 years ago

haleyga commented 6 years ago

Consider returning the node's actual stored value instead of returning the node itself. Users of the tree likely only care about the data stored in the tree, not the structural components.

Perhaps consider returning the value by default, yet allowing a flag to get the structural node?

haleyga commented 6 years ago

This will encompass #min and #max methods as well.