Liking cljdoc? Tell your friends :D

common-beer-format.core

A collection of handy functions to utilize the specs in this library.

A collection of handy functions to utilize the specs in this library.
raw docstring

coerceclj/s

(coerce spec data)

Coerce data to a given spec while eliminating non-conforming keys and values.

Coerce `data` to a given `spec` while eliminating non-conforming keys and values.
sourceraw docstring

conformclj/s

(conform spec data)

Conform data to a given spec while eliminating non-conforming keys and values.

Conform `data` to a given `spec` while eliminating non-conforming keys and values.
sourceraw docstring

encodeclj/s

(encode spec data)

Encode the data described by spec into a string.

Encode the `data` described by `spec` into a string.
sourceraw docstring

explainclj/s

(explain spec data)

Explain why data does not conform to spec as a human readable string.

Explain why `data` does not conform to `spec` as a human readable string.
sourceraw docstring

explain-dataclj/s

(explain-data spec data)

Explain why data does not conform to spec with a map of information.

Explain why `data` does not conform to `spec` with a map of information.
sourceraw docstring

get-specclj/s

(get-spec k)

Returns spec registered for keyword/symbol/var k, or nil.

Returns spec registered for keyword/symbol/var k, or nil.
sourceraw docstring

invalid?clj/s

(invalid? spec data)

Returns false when data conforms to spec, and true otherwise.

Returns false when `data` conforms to `spec`, and true otherwise.
sourceraw docstring

spec-descriptionclj/s

(spec-description spec)

Describe a spec.

Describe a `spec`.
sourceraw docstring

valid?clj/s

(valid? spec data)

Returns true when data conforms to spec, and false otherwise.

Returns true when `data` conforms to `spec`, and false otherwise.
sourceraw docstring

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

× close