Liking cljdoc? Tell your friends :D

expound.alpha

Drop-in replacement for clojure.spec.alpha, with human-readable expound function

Drop-in replacement for clojure.spec.alpha, with
human-readable `expound` function
raw docstring

*value-str-fn*clj/s

source

check-fn-failure?clj/s

(check-fn-failure? failure problem)
source

check-header-sizeclj/s

source

check-result?clj/s

(check-result? data)
source

check-ret-failure?clj/s

(check-ret-failure? failure problem)
source

custom-printerclj/s

(custom-printer opts)

Returns a printer, configured via opts

Returns a printer, configured via opts
sourceraw docstring

defclj/smacro

(def k spec-form)
(def k spec-form error-message)

Like clojure.spec.alpha/def, but optionally takes a human-readable error message (will only be used for predicates) e.g. 'should be a string'

Like clojure.spec.alpha/def, but optionally takes a human-readable error message (will only be used for predicates) e.g. 'should be a string'
sourceraw docstring

defmsgclj/s

(defmsg k error-message)
source

error-messageclj/s

(error-message k)
source

expected-strclj/s

source

explain-data?clj/s

(explain-data? data)
source

explain-missing-keysclj/s

(explain-missing-keys problems)
source

explain-resultclj/s

(explain-result check-result)
source

explain-result-strclj/s

(explain-result-str check-result)
source

explain-resultsclj/s

(explain-results check-results)
source

explain-results-strclj/s

(explain-results-str check-results)
source

expoundclj/s

(expound spec form)

Given a spec and a value, either prints a success message or prints a human-readable explanation as a string.

Given a spec and a value, either prints a success message or prints a human-readable explanation as a string.
sourceraw docstring

expound-strclj/s

(expound-str spec form)

Given a spec and a value, either returns success message or returns a human-readable explanation as a string.

Given a spec and a value, either returns success message or returns a human-readable explanation as a string.
sourceraw docstring

extra-input?clj/s

(extra-input? _failure problem)
source

figwheel-themeclj/s

source

fspec-exception-failure?clj/s

(fspec-exception-failure? failure problem)
source

fspec-fn-failure?clj/s

(fspec-fn-failure? failure problem)
source

fspec-ret-failure?clj/s

(fspec-ret-failure? failure problem)
source

grouped-and-sorted-problemsclj/s

(grouped-and-sorted-problems failure problems)
source

header-labelclj/s

source

header-sizeclj/s

source

instrumentation-infoclj/s

(instrumentation-info failure caller)
source

insufficient-input?clj/s

(insufficient-input? _failure problem)
source

labelclj/s

(label size)
(label size s)
(label size s label-str)
source

minimal-fspecclj/s

(minimal-fspec form)
source

missing-key?clj/s

(missing-key? _failure problem)
source

missing-spec?clj/s

(missing-spec? _failure problem)
source

multi-specclj/s

(multi-spec pred spec)
source

multi-spec-partsclj/s

(multi-spec-parts spec-form)
source

named?clj/s

(named? x)
source

no-methodclj/s

(no-method spec-name val path problem)
source

not-in-set?clj/s

(not-in-set? _failure problem)
source

ns-qualifyclj

(ns-qualify s)

Qualify symbol s by resolving it or using the current ns.

Qualify symbol s by resolving it or using the current *ns*.
sourceraw docstring

pr-predclj/s

(pr-pred pred spec)
source

pr-pred*clj/s

(pr-pred* pred)
source

predicate-errorsclj/s

(predicate-errors problems)
source

predsclj/s

(preds problems)
source

(print-check-result check-result)
source

(print-explain-data opts explain-data)
source

printerclj/s

(printer explain-data)

Prints explain-data in a human-readable format

Prints explain-data in a human-readable format
sourceraw docstring

printer-strclj/s

(printer-str opts data)
source

problem-group-strclj/s

source

problem-typeclj/s

(problem-type failure problem)
source

relevant-specsclj/s

(relevant-specs problems)
source

safe-sort-byclj/s

(safe-sort-by key-fn comp coll)

Same as sort-by, but if an error is raised, returns the original unsorted collection

Same as sort-by, but if an error is raised, returns the original unsorted collection
sourceraw docstring

section-labelclj/s

source

section-sizeclj/s

source

show-spec-nameclj/s

(show-spec-name spec-name value)
source

spec+viaclj/s

(spec+via problem)
source

spec-nameclj/s

(spec-name ed)
source

spec-strclj/s

(spec-str spec)
source

spec-w-error-message?clj/s

(spec-w-error-message? via pred)
source

specsclj/s

(specs problems)

Given a collection of problems, returns the specs for those problems, with duplicates removed

Given a collection of problems, returns the specs for those problems, with duplicates removed
sourceraw docstring

specs-strclj/s

(specs-str problems)
source

value-in-contextclj/s

(value-in-context opts spec-name form path value)

Given a form and a path into that form, returns a string that helps the user understand where that path is located in the form

Given a form and a path into that form, returns a string
that helps the user understand where that path is located
in the form
sourceraw docstring

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

× close