Hi,

Am Mittwoch, 24. Jan 2007, 01:57:36 +0900 schrieb Patrick Gundlach:
> [inject confusion]
> 
> > (Anyone got a good _why-like mnemonic they use for
> > remembering the order?)
> 
> not good, but it helps me:
> 
> "memo" comes first (alphabetically), so it is
> 
> inject(memo, obj)

I'm trying to help myself with the order invariance in

  a == a.inject([]) { |r,e| r+[e] }
  a == a.inject([]) { |r,e| r << e }

Bertram


-- 
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de