On 10-12-07 01:37 AM, Alex Baranosky wrote:
Hello Alexandre,
This code makes my tests pass:
(defn distances [origin & locations]
(map #(dist-in-miles origin %) locations))
(defn map-of-distances [origin & locations]
(apply hash-map (interleave locations (apply distances origin
locations))))
Glad it helped :)
Alex
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en