Reimplement the filter and map methods for Lists using fold()s.

Chapter 3 Exercise 7.