Scala has tuples. Great, I like tuples. Immutable sequences, quite handy.
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
...
I was recently reminded of this, which I originally posted in the xkcd fora some months ago, but I figured some DIC folks might enjoy it as well:
Binary, hex, and so forth are written (or coded, or otherwise nonverbal) systems for representing numeric values. Typically, if you need to express a numeric value verbally, you use decimal. If you need...