Instantly share code, notes, and snippets.

Embed
What would you like to do?
scala> (1 to 3)
res2: scala.collection.immutable.Range.Inclusive = Range(1, 2, 3)
scala> (1 until 3)
res3: scala.collection.immutable.Range = Range(1, 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment