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

Combination of zip and iterators with multiple return values drops all values after first #40

Open
bigbes opened this issue Jul 28, 2017 · 0 comments
Labels
Milestone

Comments

@bigbes
Copy link

bigbes commented Jul 28, 2017

Example:

tarantool> fun.duplicate(1, 2, 3):take(3):each(print)
1       2       3
1       2       3
1       2       3
---
...
tarantool> fun.zip({1, 2, 3}, fun.duplicate(1, 2, 3)):take(3):each(print)
1       1
2       1
3       1
---
...

Expected:

tarantool> fun.duplicate(1, 2, 3):take(3):each(print)
1       2       3
1       2       3
1       2       3
---
...
tarantool> fun.zip({1, 2, 3}, fun.duplicate(1, 2, 3)):take(3):each(print)
1       1       2       3
2       1       2       3
3       1       2       3
---
...

Probably error is in zip_gen_r in line:

local state_x, r = gen_x(param_x, state[i])

where other values are dropped

@bigbes bigbes changed the title Combination of zip and iterators with multiple return values Combination of zip and iterators with multiple return values drops all values after first Jul 28, 2017
@kyukhin kyukhin added the bug label Sep 24, 2021
@kyukhin kyukhin added this to the wishlist milestone Sep 24, 2021
@kyukhin kyukhin modified the milestone: wishlist Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants