-
Notifications
You must be signed in to change notification settings - Fork 147
Closed
Description
Unfortunately this function
def mergeMapsCombiningValueMaps[A, B, C](collisionFunc: (C, C) => C)
(m1: Map[A, Map[Seq[B], C]], m2: Map[A, Map[Seq[B], C]]): Map[A, Map[Seq[B], C]] = {
mergeMaps(m1, m2)((m11, m22) => mergeMaps(m11, m22)(collisionFunc))
}gets reformatted as:
def mergeMapsCombiningValueMaps[A, B, C](collisionFunc: (C, C) => C)(m1: Map[A, Map[Seq[B], C]], m2: Map[A, Map[Seq[B], C]]): Map[A, Map[Seq[B], C]] = {
mergeMaps(m1, m2)((m11, m22) => mergeMaps(m11, m22)(collisionFunc))
}I would prefer keeping the line breaks as they were because then this monster takes at least a bit less space...
A configuration option that a) either always inserts line breaks or b) inserts line breaks if the line is longer than a specific lenght would be handy in this case.
http://docs.scala-lang.org/style/declarations.html#multiple_parameter_lists
Metadata
Metadata
Assignees
Labels
No labels