From: Rick DeNatale Date: 2006-08-04T04:50:01+09:00 Subject: Re: New Ruby Culture T-Shirts! On 8/3/06, William James wrote: > I see > (1..10).collect {|x| x*x} > This woud be better: > (1..10).map {|x| x*x} > > The name "collect" tends to make one assume that it does > what inject does. On the other hand, "map" describes what > it does; it produces a one-to-one mapping. > > Furthermore, "collect" in Common Lisp does something > different. OCaml and most if not all Lisp dialects use "map" > as it is used in Ruby. > > And "collect" is longer. To me, it seems senseless to use it. On the other hand collect is an old friend to old Smalltalker's like me. -- Rick DeNatale IPMS/USA Region 12 Coordinator http://ipmsr12.denhaven2.com/ Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/