Skip to content

Instantly share code, notes, and snippets.

@brianhsu
Created January 7, 2010 11:34
Show Gist options
  • Save brianhsu/271181 to your computer and use it in GitHub Desktop.
Save brianhsu/271181 to your computer and use it in GitHub Desktop.
object Test
{
def main (args: Array[String]) {
val x = Map ("Hello" - > 1,
"Test" -> 2,
"HaHaHa" -> 3)
for ((key,value) <- x) {
println ("%s -> %d" format (key, value))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment