Implementations for mapAccumL() and mapAccumR().
Move the interface of a List outside the implementation and into its own file.