Replace `Pair.apply` with `Util.pairID`, avoids extra class generation

This commit is contained in:
Indrajit Raychaudhuri 2012-03-12 04:44:27 +05:30
parent 38941a4cfd
commit 51db55d847
1 changed files with 3 additions and 1 deletions

View File

@ -27,4 +27,6 @@ object Util
case 1 => Some("1 " + prefix + single)
case x => Some(x.toString + " " + prefix + plural)
}
}
def pairID[A,B] = (a: A, b: B) => (a,b)
}