Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Implement 'enumerate' as an Iterator #543

Merged
merged 2 commits into from
May 25, 2017

Conversation

Nurdok
Copy link
Contributor

@Nurdok Nurdok commented May 24, 2017

The current implementation of enumerate created a list upfront, which is wrong (for both performance and e.g., infinite iterators). This PR changes the implementation to use an iterator instead.

@Nurdok Nurdok force-pushed the feature/enumerate-iterator branch from 839bb5a to 094ac3b Compare May 25, 2017 00:50
Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

🔢

@freakboy3742 freakboy3742 merged commit 8117c26 into beeware:master May 25, 2017
@Nurdok Nurdok deleted the feature/enumerate-iterator branch May 25, 2017 16:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants