Skip to content

Instantly share code, notes, and snippets.

@kings13y
Created March 23, 2011 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kings13y/882382 to your computer and use it in GitHub Desktop.
Save kings13y/882382 to your computer and use it in GitHub Desktop.
Simple example of using extraction in a for expression
val doubleA1 = ("A", 1)
val doubleA2 = ("A", 2)
for((a,b) <- List(doubleA1, doubleA2)) {
println(a + " : " + b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment