Top "Scala-collections" questions

Collection library for Scala Programming Language

withFilter instead of filter

Is it always more performant to use withFilter instead of filter, when afterwards applying functions like map, flatmap etc.? Why …

scala lazy-evaluation scala-collections for-comprehension
Scala 2.8 collections design tutorial

Following on from my breathless confusion, what are some good resources which explain how the new Scala 2.8 collections library has …

scala scala-collections scala-2.8
Scala Convert Set to Map

How do I convert a Set("a","b","c") to a Map("a"->1,"b"->2,"c"-&…

scala scala-collections
Scala Map from tuple iterable

Constructing scala.collection.Map from other collections, I constantly find myself writing: val map = Map(foo.map(x=>(x, …

scala scala-collections
Scala: What is the difference between Traversable and Iterable traits in Scala collections?

I have looked at this question but still don't understand the difference between Iterable and Traversable traits. Can someone explain ?

scala scala-collections
convert java.util.Map[String, Object] to scala.collection.immutable.Map[String, Any]

How do I convert java.util.Map[String, Object] to scala.collection.immutable.Map[String, Any], so that all values …

java scala scala-collections
How to find the number of (key , value) pairs in a map in scala?

I need to find the number of (key , value) pairs in a Map in my Scala code. I can iterate …

scala dictionary collections scala-collections
How to define an Ordering in Scala?

Having val hm: HashMap[org.joda.time.DateTime, MyType] I am trying to get the first and the last DateTime …

scala sorting scala-collections
Integrating Scala into an existing project in Java

we have a project written in Java. It is a maven project, that has jsp pages and a lot of …

java scala maven servlets scala-collections
mutable vs. immutable in Scala collections

I am fairly new to Scala and am trying to understand the collections hierarchy. I see that there is a …

scala collections containers scala-collections