From: Ronnie Aa Date: 2013-02-11T22:43:27+09:00 Subject: Re: firtst and only element of array (noob level) Thomas Preymesser wrote in post #1096273: > Am 11.02.2013 13:27 schrieb "Ronnie Aa" : >> but >> i * arr ==> Error >> >> Why arr != arr[0] with only one element in the array? > > arr is the whole Array object and arr[0] is the first element of the > array > (= 100) and these are not equal. Yes but when the array contains only ONE element there's no real need to indicate the position of that element. So i want to use arr as if it was arr[0]. But that's no possible.. thnx for your answer -- Posted via http://www.ruby-forum.com/.