Liking cljdoc? Tell your friends :D

active.clojure.record-spec

A re-implementation of active.clojure.record that makes use of Clojure's new spec library. Define records the same ways as in the old implementation or use the new syntax to automatically generate specs. If a field has no explicit spec, defaults to any?.

A re-implementation of `active.clojure.record` that makes use of
Clojure's new spec library. Define records the same ways as in the old
implementation or use the new syntax to automatically generate specs.
If a field has no explicit spec, defaults to `any?`.
raw docstring

check-typeclj/s

(check-type type rec)
source

define-record-typecljmacro

(define-record-type ?type
                    ?constructor-call
                    ?predicate
                    ?field-specs
                    &
                    ?opt+specs)

Attach doc properties to the type and the field names to get reasonable docstrings.

Attach doc properties to the type and the field names to get reasonable docstrings.
sourceraw docstring

ns-keywordclj/s

(ns-keyword the-name-sym)

Takes a symbol or string the-name-sym and returns a namespaced keyword based on that symbol.

Example: (ns-keyword 'foo) => :calling.name.space/foo

Takes a symbol or string `the-name-sym` and returns a namespaced keyword
based on that symbol.

Example: `(ns-keyword 'foo) => :calling.name.space/foo`
sourceraw docstring

s-andclj/s≠macro

clj
(s-and & args)
cljs
(s-and &form &env & args)
source (clj)source (cljs)

s-catclj/s≠macro

clj
(s-cat & args)
cljs
(s-cat &form &env & args)
source (clj)source (cljs)

s-defclj/s≠macro

clj
(s-def & args)
cljs
(s-def &form &env & args)
source (clj)source (cljs)

s-fdefclj/s≠macro

clj
(s-fdef & args)
cljs
(s-fdef &form &env & args)
source (clj)source (cljs)

s-fmapclj/s≠macro

clj
(s-fmap & args)
cljs
(s-fmap &form &env & args)
source (clj)source (cljs)

s-genclj/s≠macro

clj
(s-gen & args)
cljs
(s-gen &form &env & args)
source (clj)source (cljs)

s-keysclj/s≠macro

clj
(s-keys & args)
cljs
(s-keys &form &env & args)
source (clj)source (cljs)

s-specclj/s≠macro

clj
(s-spec & args)
cljs
(s-spec &form &env & args)
source (clj)source (cljs)

s-valid?clj/s≠macro

clj
(s-valid? & args)
cljs
(s-valid? &form &env & args)
source (clj)source (cljs)

throw-illegal-argument-exceptionclj/s

(throw-illegal-argument-exception msg)
source

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

× close