32 ms·
How could it be..? https://github.com/ruby/ruby/blob/ruby_2_3/enum.c#L3509-L3510 https://github.com/ruby/ruby/blob/ruby_2_3/enum.c#L3509-L351... I prefer `redu
by bshimmin 10y ago
How could it be..? https://github.com/ruby/ruby/blob/ruby_2_3/enum.c#L3509-L3510 https://github.com/ruby/ruby/blob/ruby_2_3/enum.c#L3509-L351...
I prefer `reduce` too, because it feels conceptually easier to understand (similarly `foldl`, though Ruby doesn't have that).