Paste: lazy map

Author: mb
Mode: lisp
Date: Fri, 1 May 2009 06:41:48
Plain Text |
(defn my-map [f xs]
  (if (seq xs)
    (lazy-seq (cons (f (first xs)), (my-map f (rest xs))))))

New Annotation

Summary:
Author:
Mode:
Body: