Map, Filter, Foldr in DrRacket/Scheme
问题 Programming language: Scheme/DrRacket We're currently going over map , filter , and foldr in my comp sci class. I understand that all three can be used to create abstract functions, but I am honestly a little confused about the difference between the three and when I'd use each one. Anyone care to explain what each is used for and how they are different? Unfortunately my book is not very clear. 回答1: The basic idea is that all three are ways of applying some function to all the elements of a