Summary
In this chapter, we learned how to write higher-order functions of our own that can either wrap another function to provide some new feature, alter a function's objective so that it does something else, or even provide totally new features, such as decoupling methods from objects or creating better finders. The main takeaway from this chapter is that you have a way of modifying the behavior of a function without actually having to modify its own code; higher-order functions can manage this in an orderly way.
In Chapter 7, Transforming Functions – Currying and Partial Application, we'll keep working with higher-order functions and learn how to produce specialized versions of existing functions with predefined arguments by using currying ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access