performance - Prepending to mutable.LinkedList without copying in Scala -
i need build list quickly. idea use mutable.linkedlist , grow prepending. found operator +: prepending , produces copy of list, surprising, given list mutable. is there way prepend , modify list in place? i think how supposed use it, quick glance: val newlist = new linkedlist(newelem, existinglist) note though deprecated in scala 2.11 , might removed in future.