g ∘ f patterns - (aka From Gof to lambda)
| Pattern | Lambda |
|---|---|
| Command | Functions |
| Strategy | Functions |
| Template | Consumer |
| Observer | Consumer |
| Decorator | Functions composition |
| Chain of Resposibility | Stream of functions |
| Interpreter | Map of functions |
| Visitor | Pattern matching + Functions |
by Mario Fusco
The video of talk where I implemented this patterns in a live coding session is available here.
Same patterns have also been reimplemented in Swift and Kotlin.