I've just started playing with Clojure and I have a newbie question:

I have an anonymous function that takes a variable number of parameters.  I 
coded it so it takes a list of strings or functions that return strings and 
concatenates the resultant strings like so:

(defn example [& args] (reduce str args))

My question is: I would like to allow the first parameter to be an 
(optional) map containing key values for the function.  What's a clean, 
readable way to do that?

thanks!


-- 
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

Reply via email to