Actions
Bug #17814
closedinconsistent Array.zip behavior
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-linux]
Description
When using Array.zip
with an enumerator, it "eats" an additional element off the end of it. Enumerable.zip
has the expected behavior of only taking as many elements as it needs to.
I've tested this on local ruby 2.7.2 and ruby 3.0.1 on carc.in.
Files
Actions
Like0
Like0Like0Like0