-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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-like version of skipmissing for multiple iterators? #30596
Comments
One incongruity with the above API is that |
Thanks for making this issue! I think the behavior I'm looking for is actually
definitely separate objects rather than an iterator of pairs is nice. The use-case I imagine is when you have arguments that need to be synced by index and inputted into functions. |
FYI @galenlynch implemented |
|
Maybe OTOH the tuple iterator as implemented in the first post seems more natural as it has to traverse the data only once, so an alternative would be to go with |
The problem @stevengj highlighted is that
If |
I'm curious if this idea makes any sense. Now that we can index a Then we could mandate that functions that require arrays of equal length to |
That would break the current behavior of |
Based on the above conversation, a good way forward would be a Should I submit a PR to |
I've implemented a |
As suggested on discourse, a method like
might be useful.
(Not using
any
here to exploit the optimizedmapfoldl
for tuples from #30471.)The text was updated successfully, but these errors were encountered: