-
Notifications
You must be signed in to change notification settings - Fork 135
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
Zip with next #217
base: master
Are you sure you want to change the base?
Zip with next #217
Conversation
Hello - My apologies, but this PR has been open for several weeks and I can't move forward until after this PR Is processed. |
Thanks, I'll review it later today when I get some time. |
Thank you |
Hi @EntilZha , let me know if you are still maintaining this project. I ask because you have yet to approve/comment on this PR after 3 or more weeks. It's okay if you don't want people to create PRs for this project due to not having enough free time or whatever the reason, but let us know so we can use our time more constructively on other projects. Thanks |
This PR adds the
zip_with_next
function, which zips together adjacent elements, or seq[0:-1] with seq[1:].Its functionality is common (think of how many algorithms require processing adjacent elements together), therefore it makes sense to include it in Pyfunctional's API and not leave it to clients to add it as an @extend function.
Kotlin's collections API already has this function, and adding it to Pyfunctional makes it even more serviceable and versatile.