It is useful to build a map from a list of keys and a value generator
function. Of Course, such a function is easy to write:

(defn genmap [keys fun]
  (zipmap keys (map fun keys)))

In fact, it seems so useful that it must be in the standard API
somewhere, but I can't find it... did I miss it somewhere, or was I
right to create my own? Please let me know if I'm reinventing the
wheel.

Thanks!

Conrad Barski
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to