Created
May 20, 2013 18:46
Scala Ranges (with intervals)
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
val someNumbers = Range(2, 10, 3) // gives me a scala.collection.immmutable.Range object which contains the Ints 2, 5, and 8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment