(default-guard-fail-f element-id f v xvf failures & args)
Default guard-fail-f
function with signature [eid f v xvf failures & args].
Default `guard-fail-f` function with signature [eid f v xvf failures & args].
(guard element-id f)
(guard element-id v-extract-f f)
Generates a diction validation guard function calling function f
with
variadic arguments given a diction element-id
successful validation and
calling the atom function variable guard-fail-f
if validation fails.
The optional v-extract-f
is used to extract the value to be validated
against the element-id
from the args
vector; defaults to first
.
Generates a diction validation guard function calling function `f` with variadic arguments given a diction `element-id` successful validation and calling the atom function variable `guard-fail-f` if validation fails. The optional `v-extract-f` is used to extract the value to be validated against the `element-id` from the `args` vector; defaults to `first`.
(guard-fail-f! f)
Sets the guard fail function atom guard-fail-f
to f
.
The guard-fail-f
has a signature [element-id guarded-f arg-value-validated
extract-arg-f failures & args].
Sets the guard fail function atom `guard-fail-f` to `f`. The `guard-fail-f` has a signature [element-id guarded-f arg-value-validated extract-arg-f failures & args].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close