Skip to content

Instantly share code, notes, and snippets.

@andrewharmellaw
Created May 20, 2013 19:14
Show Gist options
  • Save andrewharmellaw/5614687 to your computer and use it in GitHub Desktop.
Save andrewharmellaw/5614687 to your computer and use it in GitHub Desktop.
Scala Ranges (Inclusive) - much better
val someNumbers = Range(0, 10).inclusive // gives me a scala.collection.immmutable.Range object which contains every Int from 0 to 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment