-
Notifications
You must be signed in to change notification settings - Fork 22
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 algorithm #53
Comments
Zip is currently provided in |
So that's what that's supposed to do. I struggled to understand the code, and "n-ary version of transform" in the documentation didn't make sense to me. Regardless, it might also be useful to have a version of |
interesting idea, would be quite implementable but I wouldn't know what to call the two mismatched flavors. zip_jagged? zip_filled? shortening to the shortest is a haskell thing right? |
Maybe it started with haskell, but a lot of other languages do it that way. I've personally never seen a Maybe |
zip_long, zip_short and zip? the exact version is going to be the most performant and probably the most commonly used (I think) |
A
zip
algorithm would be really useful, and I've desired it on occasion. It would perform this operation:Here's a sample implementation to show what I'm talking about (godbolt link):
The text was updated successfully, but these errors were encountered: