Functional Design Patterns
In this chapter, we will move to a higher level of abstraction. Rather than talking about individual functions and operations, let’s take a look at some design patterns. While we will not extensively explain each design pattern, we will take a look at how the object-oriented pattern translates to the functional world.
In this chapter, we’re going to cover the following main topics:
- Classical design patterns in a functional paradigm:
- The strategy pattern
- The decorator pattern
- The Hollywood principle
- Functional design patterns