-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add on-trie vector data structure #25
Conversation
src/collections/vector.js
Outdated
next() { | ||
let value = this.vector.get(this.current) | ||
this.current += 1 | ||
return value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the JS iterator standard return an object with value
and done
fields? Does that not fit within the SDK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL that! I think it should fit, let me try
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it work
Co-authored-by: Austin Abell <austinabell8@gmail.com>
Testing is more in a simulated way in quickjs repl. Will need to think of a better way to test and also use it in status-collections example