g ∘ f patterns (aka From Gof to lambda)
Mario Fusco
byPattern | Lambda |
---|---|
Command | Functions |
Strategy | Functions |
Template | Consumer |
Observer | Consumer |
Decorator | Functions composition |
Chain of Responsibility | Stream of functions |
Interpreter | Map of functions |
Visitor | Pattern matching + Functions |
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.