CPS comes to mind (Continuation passing style). Apparently continuations really do it for me. One of the many gains from picking up functional programming is stumbling upon little "pearls" like these that I wouldn't have otherwise.
https://en.wikibooks.org/wiki/Haskell/Continuation_passing_s...