Ruby Tip: Quickly get the first/last items from range

If you need to get the first & last items from a range in ruby can you do:

first, *_, last = *1..10
first # => 1
last # => 10
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.