December 2021
Beginner
840 pages
47h 29m
English
Higher-order functions capture common, typically recursive, programming patterns as functions. When HOFs are curried, they can be used to automatically define atomic functions—rendering the HOFs more powerful. Curried HOFs help programmers define functions in a modular, succinct, and easily modifiable/reconfigurable fashion. They provide the glue that enables these atomic functions to be combined to construct more complex functions, as the examples in the prior section demonstrate. The use of curried HOFs lifts us to a higher-order style of functional programming—the third tier of functional programming in Figure 5.10. In this style of programming, programs are composed of a series of concise function definitions that are defined ...