11 First-class functions: Part 2
In this chapter
- Learn more applications of replace body with callback.
- Understand how returning functions from functions can give functions superpowers.
- Get lots of practice writing higher-order functions to sharpen your skills.
In the last chapter, we learned skills for creating higher-order functions. This chapter will deepen the learning as we apply those skills to more examples. We start by codifying our copy-on-write discipline. We then improve the logging system so it’s not as much work.
One code smell and two refactorings
In the last chapter, we learned a code smell and two refactorings that help us ...
Get Grokking Simplicity now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.