ngs-lang / ngs

Next Generation Shell (NGS)
https://ngs-lang.org/
GNU General Public License v3.0
1.43k stars 43 forks source link

Implement zip(Iter, Iter, ...) #220

Open ilyash-b opened 5 years ago

antonio-pedro99 commented 1 year ago

Can you elaborate on this?

ilyash-b commented 1 year ago

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

antonio-pedro99 commented 1 year ago

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

ilyash-b commented 1 year ago

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

antonio-pedro99 commented 1 year ago

should I work on it too?

ilyash-b commented 1 year ago

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

antonio-pedro99 commented 1 year ago

Okay.