The technique that’s demonstrated is actually called currying. It’s the process of taking functions with multiple arguments and turned them into a series of functions that each take a single argument. The goal is to cache expensive operations so we only have to do them once. The result can be then used in a lot of places.
Okaaaay. I read the article (thank you for the link). And I sort of see the point. But one of the main features is there is something about saving resources? Can you please explain how the example used in the lesson save resources? Is it in there only to get us accustomed to seeing it? It seems to me that it makes the code harder to understand because you are divorcing the arguments from the function.