Liking cljdoc? Tell your friends :D

qbits.spex


ancestorsclj/s

(ancestors tag)

Like clojure.core/ancestors but scoped on our spec hierarchy

Like clojure.core/ancestors but scoped on our spec hierarchy
sourceraw docstring

def-derivedclj/smacro

(def-derived k parent)

2 arg arity will define a new spec such that (s/def ::k ::parent) and define a relationship between the 2 with spex/derive such that: (spec/isa? k parent) => true. 3 arg arity will define the same relationship but instead of creating a simple spec alias it will create a new spec such that (s/def ::k (s/merge ::parent [specs...]). Parents derivation only works between registered specs.

2 arg arity will define a new spec such that (s/def ::k ::parent) and
define a relationship between the 2 with spex/derive such
that: (spec/isa? k parent) => true.
3 arg arity will define the same relationship but instead of
creating a simple spec alias it will create a new spec such that
(s/def ::k (s/merge ::parent [specs...]).
Parents derivation only works between registered specs.
source (clj)source (cljs)raw docstring

def-mergedclj/smacro

(def-merged k parents)
source (clj)source (cljs)

deriveclj/s

(derive tag parent)

Like clojure.core/derive but scoped on our spec hierarchy

Like clojure.core/derive but scoped on our spec hierarchy
sourceraw docstring

descendantsclj/s

(descendants tag)

Like clojure.core/descendants but scoped on our spec hierarchy

Like clojure.core/descendants but scoped on our spec hierarchy
sourceraw docstring

docclj/s

(doc k)

Returns doc associated with spec

Returns doc associated with spec
sourceraw docstring

isa?clj/s

(isa? child parent)

Like clojure.core/isa? but scoped on our spec hierarchy

Like clojure.core/isa? but scoped on our spec hierarchy
sourceraw docstring

metaclj/s

(meta k)
(meta k merge-with-ancestors?)

Like clojure.core/meta but for registered specs. If merge-with-ancestors? is set to true it will merge with the metadata from all parents (top to bottom)

Like clojure.core/meta but for registered specs.
If merge-with-ancestors? is set to true it will merge with the
metadata from all parents (top to bottom)
sourceraw docstring

metadata-registryclj/s

source

parentsclj/s

(parents tag)

Like clojure.core/parents but scoped on our spec hierarchy

Like clojure.core/parents but scoped on our spec hierarchy
sourceraw docstring

rel-nsclj/smacro

(rel-ns k)

Creates a relative aliased namespace matching supplied symbol

Creates a relative aliased namespace matching supplied symbol
source (clj)source (cljs)raw docstring

spec-hierarchyclj/s

source

underiveclj/s

(underive tag parent)

Like clojure.core/underive but scoped on our spec hierarchy

Like clojure.core/underive but scoped on our spec hierarchy
sourceraw docstring

unregister-meta!clj/s

(unregister-meta! k)

Unregister meta data for a spec

Unregister meta data for a spec
sourceraw docstring

vary-meta!clj/s

(vary-meta! k f & args)

Like clojure.core/vary-meta but for registered specs, mutates the meta in place, return the keyword spec

Like clojure.core/vary-meta but for registered specs, mutates the
meta in place, return the keyword spec
sourceraw docstring

with-docclj/s

(with-doc k doc)

Add doc metadata on a registered spec

Add doc metadata on a registered spec
sourceraw docstring

with-meta!clj/s

(with-meta! k m)

Like clojure.core/with-meta but for registered specs, mutates the meta in place, return the keyword spec

Like clojure.core/with-meta but for registered specs, mutates the
meta in place, return the keyword spec
sourceraw docstring

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

× close