(ancestors tag)
Like clojure.core/ancestors but scoped on our spec hierarchy
Like clojure.core/ancestors but scoped on our spec hierarchy
(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.
(derive tag parent)
Like clojure.core/derive but scoped on our spec hierarchy
Like clojure.core/derive but scoped on our spec hierarchy
(descendants tag)
Like clojure.core/descendants but scoped on our spec hierarchy
Like clojure.core/descendants but scoped on our spec hierarchy
(doc k)
Returns doc associated with spec
Returns doc associated with spec
(isa? child parent)
Like clojure.core/isa? but scoped on our spec hierarchy
Like clojure.core/isa? but scoped on our spec hierarchy
(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)
(parents tag)
Like clojure.core/parents but scoped on our spec hierarchy
Like clojure.core/parents but scoped on our spec hierarchy
(rel-ns k)
Creates a relative aliased namespace matching supplied symbol
Creates a relative aliased namespace matching supplied symbol
(underive tag parent)
Like clojure.core/underive but scoped on our spec hierarchy
Like clojure.core/underive but scoped on our spec hierarchy
(unregister-meta! k)
Unregister meta data for a spec
Unregister meta data for a spec
(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
(with-doc k doc)
Add doc metadata on a registered spec
Add doc metadata on a registered spec
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close