Exercise solution: map and mapM


Implement map and mapM from Pipes.Prelude. They have the following types:

You can write these definitions using only the functions we have seen already: yield, await, and lift.


Sign up for access to the full page, plus the complete archive and all the latest content.