Created
May 20, 2013 18:46
-
-
Save andrewharmellaw/5614349 to your computer and use it in GitHub Desktop.
Ruby Ranges (inclusive) - far more legible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
someRubyNumbers = (1..5) // gives me a Ruby Range object which contains the Ints 1, 2, 3, 4 and 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment