I understand that the functional style prefers var or val List of a mutable, and I understand why, but I am thinking about purely time/space trade offs.
I am currently interfacing with a java library and have to write tons of non idomatic code in scala anyways..
Maybe several pointers can help you to understand, why there is not a so big penalty when you use immutable structure: