From: matz@... Date: 2018-02-20T08:47:03+00:00 Subject: [ruby-core:85684] [Ruby trunk Feature#5044][Rejected] #zip with block return mapped results Issue #5044 has been updated by matz (Yukihiro Matsumoto). Status changed from Assigned to Rejected We cannot change the behavior. The change would increase the memory consumption (and decrease the performance). Matz. ---------------------------------------- Feature #5044: #zip with block return mapped results https://bugs.ruby-lang.org/issues/5044#change-70484 * Author: trans (Thomas Sawyer) * Status: Rejected * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: ---------------------------------------- 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. -- https://bugs.ruby-lang.org/ Unsubscribe: