My array is:
array = [:peanut, :butter, :and, :jelly]
array[4,0] gives []
But:
array[5,0] gives nil
I was suspecting array[4,0]
should also give nil as the array has only a third index which is :jelly
.
Can any Ruby punters out there clarify this behaviour?