Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cool stuff #4

Open
xenoterracide opened this issue Apr 18, 2020 · 0 comments
Open

cool stuff #4

xenoterracide opened this issue Apr 18, 2020 · 0 comments

Comments

@xenoterracide
Copy link

xenoterracide commented Apr 18, 2020

shouldn't the Tree class implement the typescript Iterable<T> interface? also have you considered giving more conventional methods that mimic javascripts Set and Map so that users are generally already familiar with the API. Also (and this is my opinion, that JS should have done this for set), maybe all the extra methods like .map, .filter, .foreach from array, for set. Lastly, it'd be cool if you could add optional constructor methods

new TreeSet([ 'a', 'c', 'x', 'y'] ) // Set Takes an Iterable
new TreeMap([['key', 'value'],['nextkey', 'value]]) // takes an array of tuple? key value pairs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant