Spaghetti Refactory
Home
About
Projects
Github
Monday, February 2, 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.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment