Private utilities used in schema implementation.
Private utilities used in schema implementation.
(assoc-when m & kvs)
Like assoc but only assocs when value is truthy. Copied from plumbing.core so that schema need not depend on plumbing.
Like assoc but only assocs when value is truthy. Copied from plumbing.core so that schema need not depend on plumbing.
(error x)
Distinguish a value (must be non-nil) as an error.
Distinguish a value (must be non-nil) as an error.
(fn-name f)
A meaningful name for a function that looks like its symbol, if applicable.
A meaningful name for a function that looks like its symbol, if applicable.
(fn-schema-bearer f)
What class can we associate the fn schema with? In Clojure use the class of the fn; in cljs just use the fn itself.
What class can we associate the fn schema with? In Clojure use the class of the fn; in cljs just use the fn itself.
(make-ValidationError schema value expectation-delay fail-explanation)
for cljs sake (easier than normalizing imports in macros.clj)
for cljs sake (easier than normalizing imports in macros.clj)
(unmunge s)
TODO: eventually use built in demunge in latest cljs.
TODO: eventually use built in demunge in latest cljs.
Turn on run-time function validation for functions compiled when s/compile-fn-validation was true -- has no effect for functions compiled when it is false.
Turn on run-time function validation for functions compiled when s/compile-fn-validation was true -- has no effect for functions compiled when it is false.
(value-name value)
Provide a descriptive short name for a value.
Provide a descriptive short name for a value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close