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)
@jaceklaskowski Well, the subtle difference between
val x, y = (1, 2)
and
val (x, y) = (1, 2)
isn't so obvious, unfortunately...
-
-
@propensive That's why *I* enjoy#Scala = mental exercises. Think many would…throw up their hands in despair http://dictionary.cambridge.org/dictionary/british/throw-up-your-hands-in-horror-despair … -
@jaceklaskowski And many do... :( - 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.