In Scala I tend to favour writing large chained expressions over many smaller expressions with val assignments. At my company we\'ve sort of evolved a style for th
val
I usually try to avoid using dot for things like map and filter. So I would probably write it like the following:
map
filter
def foo: List[Int] = (1 to 100).view map { x => x + 3 } filter { x => x > 10 } flatMap { table.get } take(3) toList
The leading dot notation is very readable. I might start using that.