January 2019
Beginner
210 pages
4h 47m
English
Partial application is a functional programming technique that allows us to pass the arguments required by a function at different points in time.
This technique can feel like a weird idea at first glance, because most software engineers are used to the idea of applying or invoking a function at a unique point in time (complete application), as opposed to applying a function at multiple points in time (partial application).
The following code snippet implements a function that doesn't support partial application and invokes it (providing all the required arguments) at a single point in time:
function add(a: number, b: number) { return a + b;}const result = add(5, 5); // All arguments are provided at the same timeconsole.log(result); ...Read now
Unlock full access