Liking cljdoc? Tell your friends :D

pattern.rule


rulecljmacro

(rule pattern predicate? consequence)
source

rule-simplifierclj

(rule-simplifier & rulesets)

Transform the supplied rulesets into a function of expressions which will arrange to apply each of the rules in the ruleset to all the component parts of the expression in depth order, then simplifies the result; the process is continued until a fixed point of the simplification process is achieved.

Transform the supplied rulesets into a function of expressions
which will arrange to apply each of the rules in the ruleset to all
the component parts of the expression in depth order, then
simplifies the result; the process is continued until a fixed point
of the simplification process is achieved.
sourceraw docstring

rulesetcljmacro

(ruleset & patterns-and-consequences)

Ruleset compiles rules, predicates and consequences (triplet-wise) into a function which acts like a single rule (as rule would produce) which acts by invoking the success continuation with the consequence of the first successful rule whose patterns match and satisfy the predicate. If no rules match, the failure continuation is invoked.

Ruleset compiles rules, predicates and consequences (triplet-wise)
into a function which acts like a single rule (as rule would
produce) which acts by invoking the success continuation with the
consequence of the first successful rule whose patterns match and
satisfy the predicate. If no rules match, the failure continuation
is invoked.
sourceraw docstring

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

× close