(defn read-files-into-memory [ & filenames ] (print filenames) (map #(read-json-filename %1) filenames))
The [& filenames] argument spec turns all the arguments given into a sequence. You're not passing the filenames as separate arguments, but as a vector, so you either have to change that: (read-files-into-memory "name1" "name2" ..) or you need to use apply: (apply read-files-into-memory fnames) -- 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