Scala has tuples. Great, I like tuples. Immutable sequences, quite handy.
Here's one:
Cool. So how do I get a value out of one of these guys? Like this:
Here's one:
scala> val triple = (1,2,3)triple: (Int, Int, Int) = (1,2,3)
Cool. So how do I get a value out of one of these guys? Like this:
scala> triple._1res6: Int = 1...
Page 1 of 1
← September 2012 →
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
My Blog Links
Recent Entries
Recent Comments
Search My Blog
0 user(s) viewing
0 Guests
0 member(s)
0 anonymous member(s)
0 member(s)
0 anonymous member(s)
Categories
|
|


6 Comments


|