Function: MAPA-B

Documentation

maps numbers from a to b

Source

(defun mapa-b (fn a b &optional (step 1))
  "maps numbers from a to b"
  (do ((i a (+ i step))
       (result nil))
      ((> i b) (nreverse result))
    (push (funcall fn i) result)))
Source Context