M
Matthew Boston
I'm working through the rubykoans and I cannot figure out one of them.
array = [1, 2, 3, 4]
Why does array[4,0] return [] but array[5,0] return nil?
From RDoc:
Returns nil if the index (or starting index) are out of range.
That means array[4,0] would return nil, right?
Thanks for the help.
array = [1, 2, 3, 4]
Why does array[4,0] return [] but array[5,0] return nil?
From RDoc:
Returns nil if the index (or starting index) are out of range.
That means array[4,0] would return nil, right?
Thanks for the help.