# Scala / Partial Applied Function

Posted On 12.24.2021

Like currying, if a function takes some arguments and we invoke that function without all of the arguments, a new function will be created so we can call it with the remaining functions later on.

In Scala, it is called Partial Applied Function, and we can call it with the place holder like this:

def sum(a: Int, b: Int): Int = a + b


In JavaScript, it is equivalent to bind method:
const sum = (a, b) => a + b;