Ruby's single splat operator (*) can be used to de-structure arrays and to get a certain segment of an array.

For example:

> array = [1,2,3,4]
=> [1, 2, 3, 4]

# De-structuring the beginning of an array
> *beginning, ending = array
=> [1, 2, 3, 4]
> beginning
=> [1, 2, 3]
> ending
=> 4

# De-structuring the ending of an array
> beginning, *ending = array
=> [1, 2, 3, 4]
> beginning
=> 1
> ending
=> [2, 3, 4]

#ruby