Exercises: Zippy applicatives
Contents
- Exercise 1
- Exercise 2
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.