Discord is now Scala’s main chat platform. Please join us at https://discord.com/invite/scala
takeRightWhile
is missing too. I must have a nosy at these new collections
case x::Nil
?
lines.foldLeft(Nil:List[Char])((acc, cs)=> acc ::: (cs :+ '\n')).init
LinkedList()
.mkString
, which is less principled and only works for this one usecase.
Subclass(a: A, b: B) extends SuperClass({ stuff; stuff; result}, other parameters)