From: Hans Mackowiak Date: 2013-02-24T21:12:36+09:00 Subject: Re: Confusion with `nil` value being produced by IRB in case of Array#size manipulation. its because ruby does not make a difference in Array#[] if the element is nil or non existendt ... array = [nil] array[0] #=> nil array[1] #=> nil see? there is no difference and no error! -- Posted via http://www.ruby-forum.com/.