Yukihiro Matsumoto
3/31/2008 6:29:00 AM
Hi,
In message "Re: inject's pathological case..."
on Mon, 31 Mar 2008 00:27:58 +0900, "David A. Black" <dblack@rubypal.com> writes:
|> AFAIK, Matz correct me if I'm wrong, Ruby got the name inject from
|> Smalltalk, along with collect, select, detect and several other
|> methods. The other three I mention have alias, map for collect,
|> find_all for select, and find for detect, but inject is still just
|> inject in Ruby.
|
|It picks up the synonym "reduce" in 1.9 -- which I think is kind of
|too bad, since inject in Ruby has such a distinctive personality and
|cult following :-)
reduce, fold, foldl; these are some of the candidates. But I think I
have to wait for consensus for a while.
matz.