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

refactor(BitField): reverse iterator/toArray responsibilities #9118

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

almeidx
Copy link
Member

@almeidx almeidx commented Feb 9, 2023

Please describe the changes this PR makes and why it should be merged:
The iterator should only calculate (and yield) values that the user consumes, while the current implementation calculates all of the values by calling toArray(), and then yields them

This PR makes the iterator do the calculations, which toArray() consumes. The end-user behaviour is still the same

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating

@vercel
Copy link

vercel bot commented Feb 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
discord-js ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 7:40PM (UTC)
discord-js-guide ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 17, 2023 at 7:40PM (UTC)

@almeidx almeidx changed the title refactor(BitField): reverse iterator/toArray responsabilities refactor(BitField): reverse iterator/toArray responsibilities Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants