Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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