Created
May 22, 2013 14:56
-
-
Save danidiaz/5628188 to your computer and use it in GitHub Desktop.
Scala first steps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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