Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

samer-hamood
Copy link
Contributor

@samer-hamood samer-hamood commented Jan 30, 2025

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.

@samer-hamood
Copy link
Contributor Author

samer-hamood commented Feb 7, 2025

Hello - My apologies, but this PR has been open for several weeks and I can't move forward until after this PR Is processed.

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