pure functions, currifications, combinatorial functions

pure functions define1. same input, same output.2. there will be no side effects during execution. currieization defining a function that passesonly a subset of the arguments to the function and returns a function that receives the remaining arguments is curriization…