listbuffer Questions
1
Solved
Is there any way to efficiently do this, perhaps through toBuffer or to methods? My real problem is I'm building a List off a parser, as follows:
lazy val nodes: Parser[List[Node]] = phrase(( node...
Siblee asked 21/1, 2013 at 16:32
2
Solved
I have a ListBuffer. I want to remove all elements that meet a certain condition.
I could iterate over it and remove each element. But what doe Scala say about mutating a list that you are iterati...
Monteith asked 11/12, 2010 at 17:34
2
Solved
What is the most efficient way to create empty ListBuffer ?
val l1 = new mutable.ListBuffer[String]
val l2 = mutable.ListBuffer[String] ()
val l3 = mutable.ListBuffer.empty[String]
There are an...
Lylalyle asked 9/4, 2010 at 9:36
1
© 2022 - 2024 — McMap. All rights reserved.