Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Created August 12, 2015 15:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jmaciasluque/046b184f020a78fe0b90 to your computer and use it in GitHub Desktop.
private def exercise3() {
val list = List("The", "quick", "brown", "fox", "jumped", "over", "the", "lazy", "dog")
println(list.slice(1, 4).mkString("-"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment