From: Ken Bloom Date: 2008-04-26T02:10:12+09:00 Subject: Re: Array inject function problem On Fri, 25 Apr 2008 11:20:29 -0500, Inbroker Adams wrote: > Thanks so much guys. > So the sum =[1,3,5].inject() {|sum, element| sum + element;} runs on > both 1.8 and 1.9 right??? Yes, but it's best to use a different variable name inside the block. > 1.9 Ruby is in beta? (haven't seen it yet) not on the official site > neither on the netbeans 6.1 RC2 that i just installed Ruby 1.9.0 is a feature-frozen development release of Ruby 1.9, and it was released on December 25th. I think they're still working on implementation bugs. http://www.ruby-lang.org/en/news/2007/12/25/ruby-1-9-0-released/ -- Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/