Exercise solution: map and mapM

Exercise

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.

Solution

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