fn's "keyword arguments" feature provide unrolled, optional key-value args:
(defn foo [& {:keys [a b c]}] [a b c]) (foo :c 4) ;; [nil nil 4] On Sunday, February 17, 2013 10:06:13 PM UTC+1, AtKaaZ wrote: > > Was there a library or some other way to pass ie. maps to functions > so that the order of the params isn't predefined, just in case I want to > skip some passing parameters without actually having to pass some value for > them, I could just refer to which params I'm passing by identifying them > with a :key ? > > It's probably not hard at all to implement, but if there's a lib already, > it would do a better job that I could. > > -- > Please correct me if I'm wrong or incomplete, > even if you think I'll subconsciously hate it. > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.