If you want to extract a subset of an array (i.e. numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]) you can easily do this with one of the following examples:
numbers[0..2] will return [1, 2, 3]
numbers[3...-2] will return [3, 4, 5, 6]
numbers[-2..] will return [8, 9]
numbers[..] will return [1, 2, 3, 4,...