• (use-method multifn dispatch-val func)
Installs a function as a new method of multimethod associated with dispatch-value.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/pprint/dispatch.clj:19 top

(defn use-method
  "Installs a function as a new method of multimethod associated with dispatch-value. "
  [multifn dispatch-val func]
  (. multifn addMethod dispatch-val func))
Vars in clojure.contrib.pprint/use-method: defn
Used in 0 other vars

Comments top

No comments for use-method. Log in to add a comment.