Created
May 17, 2010 19:31
-
-
Save fumokmm/404136 to your computer and use it in GitHub Desktop.
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
scala> val list = List(1, 2, 3) | |
list: List[Int] = List(1, 2, 3) | |
scala> val List(a, b, c) = list | |
a: Int = 1 | |
b: Int = 2 | |
c: Int = 3 | |
scala> a | |
res1: Int = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment