Liking cljdoc? Tell your friends :D
ClojureScript only.

reason.core


rule->predcljs

(rule->pred rule)
(rule->pred rule rule-keys)

Given a rule, give a predicate for that rule. Returns nil if the rule contains keys not in provided keys param.

Given a rule, give a predicate for that rule.
Returns nil if the rule contains keys not in provided keys param.
raw docstring

toggle-recordcljs

(toggle-record rule record key)

Toggles a specific record (by key/value) on or off in the rule.

Returns a new rule with this record's value for the given key disabled if the rule currently affects the record; enabled if otherwise.

Because this toggles by key/value pair, if a different record has the same value for the given key, it will also be enabled/disabled.

Toggles a specific record (by key/value) on or off in the rule.

Returns a new rule with this record's value for the given key disabled
if the rule currently affects the record; enabled if otherwise.

Because this toggles by key/value pair, if a different record has the
same value for the given key, it will also be
enabled/disabled.
raw docstring

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

× close