Actions
Feature #5044
closed#zip with block return mapped results
Feature #5044:
#zip with block return mapped results
Description
Is there any reason that #zip doesn't return results like map?
[1,2,3].zip([1,2,3]){ |a,b| a + b } #=> [2,4,6]
Currently, it just returns nil, which seems rather contrary to the return result of the non-block form.
Actions