Liking cljdoc? Tell your friends :D

diction.guard


*guard-fail-dynamic-f*clj

Dynamic variable for scoped guard fail handler function.

Dynamic variable for scoped guard fail handler function.
sourceraw docstring

guardclj

(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`.
sourceraw docstring

guard-fail-fclj

Atom with guard fail function.

Atom with guard fail function.
sourceraw docstring

guard-fail-f!clj

(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].
sourceraw docstring

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

× close