Liking cljdoc? Tell your friends :D

more.spec.alpha

Provides just a bit more convenient functionality to clojure.spec.

Provides just a bit more convenient functionality to clojure.spec.
raw docstring

only-keysclj/smacro

(only-keys & {:keys [req req-un opt opt-un] :as m})

Takes the same arguments as clojure.spec.alpha/keys and creates a map validating spec. However, the spec disallows undefined keys.

Takes the same arguments as clojure.spec.alpha/keys and creates a map
validating spec. However, the spec disallows undefined keys.
sourceraw docstring

re-findclj/smacro

(re-find re)

Returns a spec that validates a string satisfying re regexp, using clojure.core/re-find.

Returns a spec that validates a string satisfying re regexp, using
clojure.core/re-find.
sourceraw docstring

re-matchesclj/smacro

(re-matches re)

Returns a spec that validates a string satisfying re regexp, using clojure.core/re-matches.

Returns a spec that validates a string satisfying re regexp, using
clojure.core/re-matches.
sourceraw docstring

stringclj/smacro

(string & {:keys [not-empty not-blank count min-count max-count re]})

Returns a spec for a string.

Takes several kwargs options that further constrain the string:

:not-empty - the string is not empty (default false) :not-blank - the string is not blank (default false) :count - specifies the string length exactly (default nil) :min-count, :max-count - range of the string length (<= min-count count max-count) (defaults nil) :re - the string matches a regexp, using clojure.core/re-find (default nil)

Returns a spec for a string.

Takes several kwargs options that further constrain the string:

:not-empty - the string is not empty (default false)
:not-blank - the string is not blank (default false)
:count - specifies the string length exactly (default nil)
:min-count, :max-count - range of the string length (<= min-count count max-count)
                         (defaults nil)
:re - the string matches a regexp, using clojure.core/re-find (default nil)
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close