-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
More Iterator methods: slice_before, slice_after, slice_when, chunk_while #7142
Comments
While coding the fifth day of Advent of Code it would have been nice to have |
@mamantoha Hehe, indeed. At this point, given that |
|
Please keep in mind though that a time travelling Santa solving elves puzzles is not entirely representing real world use cases. Just to put some restraints on the shopping spree ;) |
This is all done now :-) (open a separate issue if you'd like |
While coding this year's Advent of Code it would have been nice to have these
Iterator
methods. They exist in Ruby but are missing in Crystal. They are sometimes useful in this type of problems, where using Crystal is more fun :-PIs there interest in these? I can submit a PR with a commit for each of these.
I guess the names can remain the same as in Ruby.
The text was updated successfully, but these errors were encountered: