What is the most efficient way to create emtpy ListBuffer ?
- by drypot
What is the most efficient way to create emtpy ListBuffer ?
val l1 = new mutable.ListBuffer[String]
val l2 = mutable.ListBuffer[String] ()
val l3 = mutable.ListBuffer.empty[String]
There are any pros and cons in difference ?