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?`.
(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.
(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`
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |