Project

General

Profile

Feature #16781

Updated by 0x81000000 (/ /) almost 4 years ago

1. Method "collect" has short synonym "map", short synonym of "inject" and "reduce" doesn't exist. 
 2. 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. 

Back