Liking cljdoc? Tell your friends :D

odoyle.rules


*match*clj/s

Provides a map of all the matched values from inside a :then block.

Provides a map of all the matched values from inside a :then block.
sourceraw docstring

*session*clj/s

Provides the current value of the session from inside a :then or :then-finally block.

Provides the current value of the session from inside a :then or :then-finally block.
sourceraw docstring

->ruleclj/s

(->rule [rule-name rule])
source

->sessionclj/s

(->session)

Returns an empty session.

Returns an empty session.
sourceraw docstring

add-ruleclj/s

(add-rule session rule)

Adds a rule to the given session.

Adds a rule to the given session.
sourceraw docstring

AlphaNodeclj/s

source

Bindingclj/s

source

Conditionclj/s

source

Factclj/s

source

fire-rulesclj/s

(fire-rules session)

Fires :then and :then-finally blocks for any rules with a complete set of matches.

Fires :then and :then-finally blocks for any rules with a complete set of matches.
sourceraw docstring

insertclj/s

(insert session [id attr value])
(insert session id attr->value)
(insert session id attr value)

Inserts a fact into the session. Can optionally insert multiple facts with the same id.

Inserts a fact into the session. Can optionally insert multiple facts with the same id.
sourceraw docstring

insert!clj/s

(insert! id attr->value)
(insert! id attr value)

Equivalent to:

(o/reset! (o/insert o/session id attr value))

Using the long form is recommended.

Equivalent to:

(o/reset! (o/insert o/*session* id attr value))

Using the long form is recommended.
sourceraw docstring

JoinNodeclj/s

source

Matchclj/s

source

MemoryNodeclj/s

source

parseclj/s

(parse spec content)
source

query-allclj/s

(query-all session)
(query-all session rule-name)

When called with just a session, returns a vector of all inserted facts. Otherwise, returns a vector of maps containing all the matches for the given rule.

When called with just a session, returns a vector of all inserted facts.
Otherwise, returns a vector of maps containing all the matches for the given rule.
sourceraw docstring

reset!clj/s

(reset! new-session)

Mutates the session from a :then or :then-finally block.

Mutates the session from a :then or :then-finally block.
sourceraw docstring

retractclj/s

(retract session id attr)

Retracts the fact with the given id + attr combo.

Retracts the fact with the given id + attr combo.
sourceraw docstring

retract!clj/s

(retract! id attr)

Equivalent to:

(o/reset! (o/retract o/session id attr))

Using the long form is recommended.

Equivalent to:

(o/reset! (o/retract o/*session* id attr))

Using the long form is recommended.
sourceraw docstring

Ruleclj/s

source

rulesetclj/smacro

(ruleset rules)

Returns a vector of rules after transforming the given map.

Returns a vector of rules after transforming the given map.
sourceraw docstring

Sessionclj/s

source

Tokenclj/s

source

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

× close