Exchanged Mealy state machines for leftFold