The attr-map adds key-value pairs to the metadata for the function symbol. The doc for 'defn' makes this clearer.
On Jan 20, 8:02 am, Jacek Generowicz <jacek.generow...@googlemail.com> wrote: > In Clojure 1.1.0, the documentation states: > > clojure.core/defmulti > ([name docstring? attr-map? dispatch-fn & options]) > Macro > Creates a new multimethod with the associated dispatch function. > The docstring and attribute-map are optional. > > Options are key-value pairs and may be one of: > :default the default dispatch value, defaults to :default > :hierarchy the isa? hierarchy to use for dispatching > defaults to the global hierarchy > > What is the purpose of the attribute map (and, perhaps more > importantly, where could I have found an explanation in the > documentation) ? > > Thank you.
-- 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