Formulates maps, folds, etc as functions.