Also:

a = [1,2,3,4,5]
first, *rest = a
first                           # => 1
rest                            # => [2, 3, 4, 5]



On Sat, Nov 9, 2013 at 11:27 AM, Michel Demazure <lists / ruby-forum.com>wrote:

> Justin Collins wrote in post #1126807:
> > On 11/08/2013 10:34 PM, Brandon Weaver wrote:
> >> # ...and/or array.tail
> Why not
>
> array.drop(1)
>
> _md
>
> --
> Posted via http://www.ruby-forum.com/.
>