December 2022
Intermediate to advanced
528 pages
15h 41m
English
Functional programming libraries typically define a common collection of higher-order functions that implement a core set of patterns. Developers can also implement their own higher-order functions to provide users with these standard patterns. Of particular interest are filter, map, and flatMap, which have deep theoretical underpinnings and are supported with a dedicated syntax in some languages. Most code examples in this chapter focus on lists and options for simplicity, but higher-order functions are typically available on many other types.
The theme of higher-order functions was motivated in Chapter 9 using a function find, which takes as an argument a ...
Read now
Unlock full access