http://gleichmann.wordpress.com/2011/12/04/functional-scala-curried-functions-and-spicy-methods/ http://stackoverflow.com/questions/1987820/applying-a-function-to-a-tuple-in-scala