Liking cljdoc? Tell your friends :D

pattern.substitute

This namespace implements a data-driven substitution system. It's flexible but much slower than the one defined in the pattern.r3.rewrite namespace that fully precompiles the substitution.

This namespace implements a data-driven substitution system. It's flexible
but much slower than the one defined in the [[pattern.r3.rewrite]] namespace that fully
precompiles the substitution.
raw docstring

*disable-sub-type*clj


*simple-matchers-only*clj


sub*cljmultimethod


substituteclj

(substitute x)
(substitute x dict)

Substitute matchers in the given pattern with data in the provided dict.

If called with just a pattern (arity 1), returns a function that takes data and an optional failure continuation (fn [dict name pattern]) which must return a list of data to be spliced in place of the pattern.

If using a static pattern, prefer pattern.r3.rewrite/sub.

Substitute matchers in the given pattern with data in the provided dict.

If called with just a pattern (arity 1), returns a function that takes data
and an optional failure continuation (fn [dict name pattern]) which must
return a *list* of data to be spliced in place of the pattern.

If using a static pattern, prefer [[pattern.r3.rewrite/sub]].
raw docstring

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

× close