Exercises: Zippy applicatives


Exercise 1

Write a function like zipApp that mimics the ZipList liftA2 instead of mimicking<*> for ZipList. In other words, you’re writing zipWith. As with our implementation of zipApp above, you do not need to use the ZipList newtype for this one.

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