Liking cljdoc? Tell your friends :D

automaton-simulation-de.predicates

Predicates are functions that takes as a param a value and return true if the value matches predicate, false otherwise and nil if comparison can't be done. Predicate functions can be expressed via a query language represented with vector. This namespace is about managing that language

Predicates are functions that takes as a param a value and return true if the value matches predicate, false otherwise and nil if comparison can't be done.
Predicate functions can be expressed via a query language represented with vector.
This namespace is about managing that language
raw docstring

apply-queryclj/s

(apply-query pred d)
(apply-query reg pred d)

Accepts pred query vector, translates it with reg and applies it to d Returns response from predicate or nil if application couldn't be done

Accepts `pred` query vector, translates it with `reg` and applies it to `d`
Returns response from predicate or nil if application couldn't be done
raw docstring

apply-query-detailedclj/s

(apply-query-detailed pred d)
(apply-query-detailed reg pred d)

Same as apply-query, but in case of an error it returns a map with more detailed information

Same as `apply-query`, but in case of an error it returns a map with more detailed information
raw docstring

is-predicate?clj/s

(is-predicate? reg pred)

pred-lang-schemaclj/s

Predicate vector language consists of :keyword represnting the name of predicate and zero or more parameters for that predicate See predicate language

Predicate vector language consists of :keyword represnting the name of predicate and zero or more parameters for that predicate
[See predicate language](docs/archi/transformation/predicate_query.png)
raw docstring

pred-registry-schemaclj/s

Predicate registry consists of keyword keys representing predicate name with map as a value, containing an implementation of the predicate under :pred-fn and metadata for the predicate

Predicate registry consists of keyword keys representing predicate name with map as a value, containing an implementation of the predicate under :pred-fn and metadata for the predicate
raw docstring

predicate-lang->pred-fn-detailedclj/s

(predicate-lang->pred-fn-detailed pred)
(predicate-lang->pred-fn-detailed reg pred)

Turns predicate query language into a function

Turns predicate query language into a function
raw docstring

predicate-lang->predicate-fnclj/s

(predicate-lang->predicate-fn reg pred)

Translates pred vector language into a function. Expects reg map containing predicate name as keys with values containing a function under :pred-fn

Translates `pred` vector language into a function. Expects `reg` map containing predicate name as keys with values containing a function under :pred-fn
raw docstring

predicate-validationclj/s

(predicate-validation reg pred)

predicates-registryclj/s

Default predicates language registry. See more

Default predicates language registry.
[See more](docs/archi/transformation/predicate_registry.png)
raw docstring

registry-valueclj/s

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

× close