Skip to content

Add double-ended iterators#37

Merged
mcy merged 2 commits intomainfrom
iter-rev
Feb 24, 2025
Merged

Add double-ended iterators#37
mcy merged 2 commits intomainfrom
iter-rev

Conversation

@mcy
Copy link
Owner

@mcy mcy commented Feb 24, 2025

Iterator implementations that provide next_back() will now be double-ended, which means that they can be reversed with iter::rev().

In addition, all iterators that can be double-ended have been made double ended, and best::text now has several functions for iterating/searching from the back of the string, but only for self-syncing encodings. I also found bugs in untested code (yippee).

@mcy mcy merged commit 32d4f4a into main Feb 24, 2025
3 checks passed
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.

1 participant