ary[index] â obj or nilary[start, length] â new_ary or nilary[range] â new_ary or nilary.slice(index) â obj or nilary.slice(start, length) â new_ary or nilary.slice(range) â new_ary or nil
Instance Public methods
Element Reference â Returns the element at index, or returns a
subarray starting at the start index and continuing for
length elements, or returns a subarray specified by
range of indices.
Negative indices co