You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extractor for pattern matching last element of a list #2575
~/code/scala squala
Welcome to Scala version 2.10.1-20121203-101839-fd57069a3a (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_27).
Type in expressions to have them evaluated.
Type:help for more information.
scala>valinit:+ last =List(1, 2, 3)
init:List[Int] =List(1, 2)
last:Int=3
Activity
scabug commentedon Nov 4, 2009
Imported From: https://issues.scala-lang.org/browse/SI-2575?orig=1
Reporter: Vassil Dichev (vdichev)
scabug commentedon Nov 17, 2009
@adriaanm said:
this should go to the greenhouse project that will be announced soon
you can easily do this outside of the std library
scabug commentedon Dec 4, 2012
@retronym said: