Top "Scala-collections" questions

Collection library for Scala Programming Language

Scala best way of turning a Collection into a Map-by-key?

If I have a collection c of type T and there is a property p on T (of type P, …

scala map scala-collections
How to read files from resources folder in Scala?

I have a folder structure like below: - main -- java -- resources -- scalaresources --- commandFiles and in that …

scala scala-collections
Is the Scala 2.8 collections library a case of "the longest suicide note in history"?

I have just started to look at the Scala collections library re-implementation which is coming in the imminent 2.8 release. Those …

scala scala-2.8 scala-collections
Converting a Java collection into a Scala collection

Related to Stack Overflow question Scala equivalent of new HashSet(Collection) , how do I convert a Java collection (java.util.…

java scala scala-collections scala-2.7
Reduce, fold or scan (Left/Right)?

When should I use reduceLeft, reduceRight, foldLeft, foldRight, scanLeft or scanRight? I want an intuition/overview of their differences - …

scala scala-collections reduce fold
Difference between Array and List in scala

In what cases I should use Array(Buffer) and List(Buffer). Only one difference that I know is that arrays …

arrays list scala scala-collections
Scala Map foreach

given: val m = Map[String, Int]("a" -> 1, "b" -> 2, "c" -> 3) m.foreach((key: String, value: …

scala scala-collections
What is the correct way to get a subarray in Scala?

I am trying to get a subarray in scala, and I am a little confused on what the proper way …

scala scala-collections
Converting mutable to immutable map

private[this]object MMMap extends HashMap[A, Set[B]] with MultiMap[A, B] How convert it to immutable?

scala immutability mutable scala-collections
When should I choose Vector in Scala?

It seems that Vector was late to the Scala collections party, and all the influential blog posts had already left. …

scala vector scala-collections