What about the following expression in #Scala? Is this legal? What's the result?
scala> val a :: b, Seq(c, d, _*) = List(1,2,3,4,5)
-
-
@propensive Yeah. It's so obvious once one gets it. Wish I managed types as much as values, though. -
@jaceklaskowski Well, the subtle difference between val x, y = (1, 2) and val (x, y) = (1, 2) isn't so obvious, unfortunately... - Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.