Top "Scala-2.8" questions

Version 2.8 of the Scala language for the JVM.

How to write to a file in Scala?

For reading, there is the useful abstraction Source. How can I write lines to a text file?

scala file-io scala-2.8
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
Overload constructor for Scala's Case Classes?

In Scala 2.8 is there a way to overload constructors of a case class? If yes, please put a snippet to …

scala constructor overloading scala-2.8 case-class
How can I convert immutable.Map to mutable.Map in Scala?

How can I convert immutable.Map to mutable.Map in Scala so I can update the values in Map?

scala dictionary scala-2.8
How to convert a Seq[A] to a Map[Int, A] using a value of A as the key in the map?

I have a Seq containing objects of a class that looks like this: class A (val key: Int, ...) Now I …

scala scala-2.8 scala-collections
How to choose a random element from an array in Scala?

For example, there is a Scala array val A = Array("please", "help", "me"). How to choose a random element from …

scala scala-2.8
Scala 2.8 breakOut

In Scala 2.8, there is an object in scala.collection.package.scala: def breakOut[From, T, To](implicit b : CanBuildFrom[Nothing, …

scala scala-2.8 scala-collections
Package objects

What are package objects, not so much the concept but their usage? I've tried to get an example working and …

scala scala-2.8
What's the right way to use scala.io.Source?

In many examples, it is described that you can use scala.io.Source to read a whole file like this: …

scala scala-2.8
How to use Scala in IntelliJ IDEA (or: why is it so difficult to get a working IDE for Scala)?

I recently gave up trying to use Scala in Eclipse (basic stuff like completion doesn't work). So now I'm trying …

scala intellij-idea scala-2.8 scala-2.7