The Spaghetti Refactory Established 2015

Make an array of sequential numbers in Ruby

There are lots of ways to do this, but this one is the most fun and most terse I've found:

[*1..7]
# => [1,2,3,4,5,6,7]

And that's Jenga.

Tags