Changes for clojure.core/rest

steveminer on Wed, 01 Jun 2011
;; A simple implementation using rest for recursing over a collection.  Note that (seq coll) is used as the test.
(defn my-map [func coll]
     (when-let [s (seq coll)]
        (cons (func (first s))
	      (my-map func (rest s)))))
steveminer on Wed, 01 Jun 2011
;; A naive implementation using rest for recursing over a collection.  Note that (seq coll) is used as the test.
(defn my-map [func coll]
     (when (seq coll)
        (cons (func (first coll))
	      (my-map func (rest coll)))))