Keep in mind that just because the private/public key is a private variable, it doesn’t mean that no one can access it. Any information that’s stored inside the variable can be found inside the contracts. Since in blockchains information is stored in multiple computers, other people can see it. This is one of the key security concerns that you must consider.
Partial application is a powerful design pattern because you can continuing chaining things like
myFun(arg1)(arg2)(arg3)… What’s happening here is akin to an assembly line in a factory: One argument at a time is applied to
myFun to evaluate a better and better partial solution until all the arguments are applied to provide a complete solution.