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.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -