ngs icon indicating copy to clipboard operation
ngs copied to clipboard

Implement zip(Iter, Iter, ...)

Open ilyash-b opened this issue 6 years ago • 7 comments

ilyash-b avatar Jan 08 '19 08:01 ilyash-b

Can you elaborate on this?

antonio-pedro99 avatar Oct 16 '22 14:10 antonio-pedro99

Input: few iterators

Output: one iterator with elements of the form [e1, e2, e3, ...] where each eN is corresponding element from the input iterators.

Similar to https://docs.python.org/3.3/library/functions.html#zip

ilyash-b avatar Oct 16 '22 14:10 ilyash-b

This issue is already solved. please do check #stdlibs.ngs line 2738

antonio-pedro99 avatar Oct 16 '22 22:10 antonio-pedro99

F zip(*args) ? Works by converting to Arrs. Far from optimal for Iter inputs.

ilyash-b avatar Oct 18 '22 05:10 ilyash-b

should I work on it too?

antonio-pedro99 avatar Oct 21 '22 11:10 antonio-pedro99

It's kind-of-acceptable behavior for non-Iters. I would leave it.

ilyash-b avatar Oct 21 '22 12:10 ilyash-b

Okay.

antonio-pedro99 avatar Oct 22 '22 07:10 antonio-pedro99