Feature #8987
Updated by nobu (Nobuyoshi Nakada) over 10 years ago
Please consider extending map/collect by allowing additional arguments to be passed to proc, like: A: `[1,2,3,4].map [1,2,3,4].map :+, 4` 4 and/or B: `[1,2,3,4].map [1,2,3,4].map 4, &:+` &:+ => [5, 6, 7, 8] Variant A is probably more readable. Variant B is more versatile (allows arbitrary arguments to be passed to block).