Reducers

Reducers over nonrecursive left folds. Pretty happy with this.
I’d like it if this didn’t involve mutable state (hidden, but there nonetheless) and an if statement, but I don’t have any ideas.