From: jmichel@... (Jean Michel) Date: 2001-03-12T20:10:02+09:00 Subject: [ruby-talk:12477] Re: Haskell goodies, RCR and challenge In article , Robert Feldt wrote: >It works with all the following forms: > # Different forms for foldl and foldr > # [1,2,3,4].foldl(:+, 0) => 10 > # [1,2,3,4].foldl(:+) => 10 > # [1,2,3,4].foldl(0) {|a,b| a+b} => 10 > # [1,2,3,4].foldl {|a,b| a+b} => 10 > # [1,2,3,4].foldl(:+,0) {|a,b| a+b} => ArgumentError > Fine, but did not we say at some stage that reduce might be a better name for foldl?