From: Love U Ruby Date: 2013-02-24T23:22:07+09:00 Subject: Re: Confusion with `nil` value being produced by IRB in case of Array#size manipulation. unknown wrote in post #1098771: > Am 24.02.2013 13:26, schrieb Love U Ruby: >> >> Humm @Hans- >> Sorry! I might skipped that part. apologies for that. > > This is *exactly* what is stated in the part of the documentation > that I cited in my previous post, and even emphasized with stars (*), > so that you could find it more easily. Here it is again: > > "Returns nil if the index (or starting index) are out of range." > > Note also that Ruby does not "print" nil, Array#[] _returns_ nil > in that case. > > Next time, before insulting other people and making a complete fool > out of yourself, do your research and reading more carefully. -- Posted via http://www.ruby-forum.com/.