add(x:Int)(y:Int) = x + y
add(5)(5) =>
add(5) _ => int => int = function
Of course we can use currying + a partially applied function for the creation of a new function, but I find it very difficult to read code like this.
Could you please show a useful example of currying with Scala?