I have implemented an alternative version of the functions mapListM and numberList that make use of explicit lambdas for building runStates that are then wrapped into States, instead of using the do notation. I have briefly tested them and they seem to work and yield the same results.
I have implemented an alternative version of the functions mapListM and numberList that make use of explicit lambdas for building runStates that are then wrapped into States, instead of using the do notation. I have briefly tested them and they seem to work and yield the same results.