Skip to content

Fast paths instead of applying an identity function#1018

Merged
bbayles merged 2 commits intomore-itertools:masterfrom
rhettinger:eliminate_identity
Jun 24, 2025
Merged

Fast paths instead of applying an identity function#1018
bbayles merged 2 commits intomore-itertools:masterfrom
rhettinger:eliminate_identity

Conversation

@rhettinger
Copy link
Copy Markdown
Contributor

Also simplify the example in consecutive_groups with an O(1) function call instead of an O(n) linear search with index.

@bbayles bbayles merged commit cefdc5d into more-itertools:master Jun 24, 2025
6 checks passed
@rhettinger rhettinger deleted the eliminate_identity branch June 27, 2025 19:14
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