Congratulations! You've just mastered the power of pure functions! It's now time to move on to the next level—pure functions on steroids, or the legendary lambdas. They've been around for longer than objects, they have a mathematical theory around them (if you like that sort of thing), and they're very powerful, as we'll discover in this chapter and the next.
The following topics will be covered in this chapter:
- Understanding the concept and history of lambdas
- How to write lambdas in C++
- How pure functions compare to lambdas
- How to use lambdas with classes