-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 eachrsplit
iterator
#45385
Comments
This was referenced Oct 9, 2023
vtjnash
pushed a commit
that referenced
this issue
Oct 11, 2023
Unlike rsplit, this iterator returns split substrings right to left, but other- wise it behaves just like eachsplit. This design has been chosen to avoid either a costly double traversal of the input string, or needing a stack to store the strings. Both of these workarounds would lessen the appeal compared to simply using rsplit. Closes #45385
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be natural and useful to have an
eachrsplit
iterator, which should be torsplit
whateachsplit
is tosplit
. I couldn't find an existing issue on this.The text was updated successfully, but these errors were encountered: