partiallyappliedfunction

noun
UK /ˈpɑːʃəli əˈplaɪd ˈfʌŋkʃən/
US /ˈpɑːrʃəli əˈplaɪd ˈfʌŋkʃən/

A partially applied function is a function that already has some of its inputs filled in, so it only needs the rest.

By giving the add function the number 5, we made a partially applied function that just waits for one more number.


OTHER MEANINGS

2. In functional programming, the result of fixing a few arguments of a function to create a new function with fewer parameters.

The partially applied function from multiply(2) doubles any number you give it.

3. A function value that remembers some arguments and waits for the remaining ones before it runs.

We stored the partially applied function and called it later with the missing value.

4. A technique used to make code reusable by creating specialized versions of a general function.

Using a partially applied function, the team built a custom logger from a general logging function.