Liking cljdoc? Tell your friends :D

tube-alloys.redef-methods


with-redef-methodscljmacro

(with-redef-methods bindings & body)

Temporarily adds or overrides dispatch keys for the specified multi-methods while executing the body.

This works in a similar manner to with-redefs by establishing a thread local binding over the multi-methods var.

Unlike with-redefs it requires the right hand side of each binding to be a map of dispatch values to functions, of an arity compatible with the multimethod.

Temporarily adds or overrides dispatch keys for the specified
multi-methods while executing the body.

This works in a similar manner to with-redefs by establishing a
thread local binding over the multi-methods var.

Unlike with-redefs it requires the right hand side of each binding
to be a map of dispatch values to functions, of an arity compatible
with the multimethod.
raw docstring

wrap-dispatch-fnclj

(wrap-dispatch-fn multi-method mappings)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close