From: sto.mar@... Date: 2013-02-24T19:31:57+09:00 Subject: Re: Confusion with `nil` value being produced by IRB in case of Array#size manipulation. Arup / Love U / Xavier: Offending list members will not help you at all. Instead, you should go away and learn reading (take your time). The come back and read this: = Array.[] (from ruby site) [...] Element Reference---Returns the element at index, or returns a subarray starting at start and continuing for length elements, or returns a subarray specified by range. Negative indices count backward from the end of the array (-1 is the last element). *Returns nil if the index (or starting index) are out of range.* ---------- = Array.[]= (from ruby site) [...] Element Assignment---Sets the element at index, or replaces a subarray starting at start and continuing for length elements, or replaces a subarray specified by range. *If indices are greater than the current capacity of the array, the array grows automatically.* [...] a = Array.new a[4] = "4"; #=> [nil, nil, nil, nil, "4"] --