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

Add on-trie vector data structure #25

Merged
merged 8 commits into from
May 20, 2022
Merged

Add on-trie vector data structure #25

merged 8 commits into from
May 20, 2022

Conversation

ailisp
Copy link
Member

@ailisp ailisp commented May 18, 2022

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

@ailisp ailisp marked this pull request as ready for review May 19, 2022 14:10
@ailisp ailisp requested a review from volovyks as a code owner May 19, 2022 14:10
src/collections/vector.js Outdated Show resolved Hide resolved
src/collections/vector.js Outdated Show resolved Hide resolved
next() {
let value = this.vector.get(this.current)
this.current += 1
return value
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it work

@ailisp ailisp merged commit bbfd0d4 into master May 20, 2022
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

Successfully merging this pull request may close these issues.

2 participants