Scala currying