Given a multimethod, returns a map of preferred value -> set of other values
(def m {:os ::osx}) (defmulti ex :os) (defmethod ex ::unix [_] "unix") (derive ::osx ::unix) (defmethod ex ::bsd [_] "bsd") (derive ::osx ::bsd) (prefer-method ex ::unix ::bsd) (prefers ex) ;;=> {:user/unix #{:user/bsd}}
Causes the multimethod to prefer matches of dispatch-val-x over dispatch-val-y when there is a c...
Given a multimethod, returns a map of dispatch values -> dispatch fns
Given a multimethod and a dispatch value, returns the dispatch fn that would apply to that value, ...
prefers