Skip to content

Instantly share code, notes, and snippets.

@taitruong
Last active August 29, 2015 13:57
Show Gist options
  • Save taitruong/9393266 to your computer and use it in GitHub Desktop.
Save taitruong/9393266 to your computer and use it in GitHub Desktop.
Simple Scala Exampe: "Hello, Scala".toList.foreach(print(_)); println
val list = "Hello, Scala".toList //> list : List[Char] = List(H, e, l, l, o, ,, , S, c, a, l, a)
list.foreach(print(_)) //> Hello, Scala
println //>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment