Thorsten Wilms <t...@freenet.de> writes: Hi Thorsten,
> The following simplified code works: > ---- > (defn save-article > [path form-params timestamp] > (ds/save! (Article. path (form-params "title") (form-params "body") > timestamp)))) > ---- > > But I would like to not handle the content of form-params explicitly. Probably, you want to use destructuring. --8<---------------cut here---------------start------------->8--- (defn save-article [path {t "title", b "body" & rest :as m} timestamp] (println "path:" path ", title:" t ", body:" b ", timestamp:" timestamp ", m:" m)) --8<---------------cut here---------------end--------------->8--- Bye, Tassilo -- 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