Sunday, 15 September 2013

Trying to understand Ruby arrays

Trying to understand Ruby arrays

array = [:peanut, :butter, :and, :jelly]
Why array[4,0] is [] and array[5,0] is nil ?
I'm new to ruby, sorry if this is a basic question.

No comments:

Post a Comment