You're viewing version 1.2.0 of prefer-method. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

prefer-method

clojure.core

  • (prefer-method multifn dispatch-val-x dispatch-val-y)
Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y
when there is a conflict

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/core.clj:1370 top

(defn prefer-method
  "Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y 
   when there is a conflict"
  {:added "1.0"}
  [^clojure.lang.MultiFn multifn dispatch-val-x dispatch-val-y]
  (. multifn preferMethod dispatch-val-x dispatch-val-y))
Vars in clojure.core/prefer-method: defn
Used in 0 other vars

Comments top

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