What is the functional programming equivalent of the decorator design pattern?
For example, how would you write this particular example in a functional style?
The Joy of Clojure talks about this very issue in chapter 13.3, "A lack of design patterns". According to the JoC, the -> and ->> macros are somewhat analogous to the decorator pattern.