Skip to content

Instantly share code, notes, and snippets.

@danidiaz
Created May 22, 2013 14:56
Show Gist options
  • Select an option

  • Save danidiaz/5628188 to your computer and use it in GitHub Desktop.

Select an option

Save danidiaz/5628188 to your computer and use it in GitHub Desktop.
Scala first steps
object Foo {
def main(args: Array[String]):Unit = {
println("jaaaaaar")
args.foreach(println)
args.foreach(println(_))
args.foreach((s:String)=>println(s))
val listy = List(2,3,4,5)
val x = listy match {
case _ => "whatever"
}
println(x)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment