Scrap your iteration combinators

You don’t even need any put/get/runState operations to implement mapAccumLM. Modulo newtypes (and argument order), it is literally just traverse/ for on StateT

4 Likes