Skip to content

Instantly share code, notes, and snippets.

@jmaciasluque
Last active August 29, 2015 14:27
  • 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/d61926b15c44d01e7aea to your computer and use it in GitHub Desktop.
private def exercise4() {
val result = new StringBuilder()
val map = TreeMap(("c", 3), ("b", 2), ("a", 1))
map
.map(entry => entry._1 + entry._2)
.foreach(result.append)
println(result)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment