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

c# - how to use buttonedit in devexpress gridcontrol -

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

c# - System.FormatException' occurred in MongoDB.Bson.dll - XXX is not a valid 24 digit hex string -