Different brackets style on Scala function definition parameter list
What is the difference of the following two function definitions in Scala: 1) def sum(f: Int => Int)(a: Int, b: Int): Int = { <code removed> } 2) def sum(f: Int => Int, a: Int, b: Int): Int = { <code removed> } ? SBT's console REPL gives different value for them so looks if they are somehow different: sum: (f: Int => Int, a: Int, b: Int)Int sum: (f: Int => Int)(a: Int, b: Int)Int The first definition is curried , so that you can provide a and b at another time. For instance, if you know the function you want to use in the current method, but don't yet know the arguments, you can use it so: def