Skip to content

Instantly share code, notes, and snippets.

@phoenix24
Created April 3, 2014 03:55
Show Gist options
  • Select an option

  • Save phoenix24/9948057 to your computer and use it in GitHub Desktop.

Select an option

Save phoenix24/9948057 to your computer and use it in GitHub Desktop.
scala range awesomeness
scala> val a :: tail = (1 to 10).toList
a: Int = 1
tail: List[Int] = List(2, 3, 4, 5, 6, 7, 8, 9, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment