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 wrap the entire expression into a set of parenthesis to group things and avoid dots if possible,
def foo: List[Int] = ( (1 to 100).view map { _ + 3 } filter { _ > 10 } flatMap { table.get } take(3) toList )