NEXT ·  UP ·  PREVIOUS ·  CONTENTS ·  INDEX

List functions

Many simple list processing problems fall into one of two forms. They may involve simply applying a function to each element of the list in turn or they involve accumulating a result by applying a function to pairs consisting of an element of the list and the result of a recursive application. The first form is known as ``mapping'' a function across a list; the second is known as ``folding'' a list.





NEXT ·  UP ·  PREVIOUS ·  CONTENTS ·  INDEX