Liking cljdoc? Tell your friends :D

qbits.spex


ancestors

(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-derivedmacro

(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.
sourceraw docstring

def-mergedmacro

(def-merged k parents)
source

derive

(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

descendants

(descendants tag)

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

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

doc

(doc k)

Returns doc associated with spec

Returns doc associated with spec
sourceraw docstring

isa?

(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

meta

(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-registry

source

parents

(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-nsmacro

(rel-ns k)

Creates a relative aliased namespace matching supplied symbol

Creates a relative aliased namespace matching supplied symbol
sourceraw docstring

spec-hierarchy

source

underive

(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!

(unregister-meta! k)

Unregister meta data for a spec

Unregister meta data for a spec
sourceraw docstring

vary-meta!

(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-doc

(with-doc k doc)

Add doc metadata on a registered spec

Add doc metadata on a registered spec
sourceraw docstring

with-meta!

(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