Skip to main content

defmulti

macrov1.7

cljs.core/defmulti

Available in:BBCLJCLJS
(defmulti [name docstring? attr-map? dispatch-fn & options])
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

No examples yet. Be the first to add one!