4 ms·
Then should the example in the above comment, `some_enum.collect(&:+)`, be using reduce instead of collect?
by pansa2 5y ago
Then should the example in the above comment, `some_enum.collect(&:+)`, be using reduce instead of collect?
- busterarm 5y agoYes. My bad. :) I haven't been a professional Rubyist in some years but my habit here was to use inject.