Functional Equivalent of State Design Pattern

Viewed 2393

What would be the functional programming equivalent of the State design pattern? Or more concretely, how would this Wikipedia example of State design pattern will translate to FP?

4 Answers
Related