Tries to return the element at position index. If the index lies outside the array, the first form throws an IndexError exception, the second form returns
default, and the third form returns the value of invoking the
block, passing in the index. Negative
values of indexcount from the end of the array.