Map

Converts one array into another.

Fold/Reduce

“Reduce” is a common pattern wherein you

  1. Iterate over a list
  2. At each iteration, you use the current item to modify a “partial” answer. (Consider sum and max as examples.)
(require 'list-lib)
(display 
    (fold (lambda (item partial) (+ item partial)) 0 '(1 2 3 4 5 6)))
(newline)
(display
    (reduce (lambda (item partial) (if (> item partial) item partial)) 99999999 lst)
)
(newline)