Ruby Przypisz resztę tablicy

a = [1, 2, 3]
b, *rest = *a

b    # => 1
rest # => [2, 3]
a    # => [1, 2, 3]
patrick204nqh