Actions
Feature #16781
openalias :fold :reduce
Status:
Open
Assignee:
-
Target version:
-
Description
- Method "collect" has short synonym "map", short synonym of "inject" and "reduce" doesn't exist.
- Name "fold" is more common/popular than "reduce" or "inject".
In my own code I use:
module Enumerable
alias :fold :reduce
end
I have no idea how to properly add "fold" in Ruby's stdlib/corelib.
Actions
Like1
Like0Like0Like0