mapAccumL package:prelude-compat