Liking cljdoc? Tell your friends :D

active.clojure.record-helper


add-accessor-docclj

(add-accessor-doc accessor type field docref)
source

add-constructor-docclj

(add-constructor-doc constructor constructor-args type field-tuples)
source

add-metaclj

(add-meta sym meta-info)
source

add-predicate-docclj

(add-predicate-doc type predicate docref)
source

add-spec-codeclj

(add-spec-code spec-name predicate field-triples constructor-args constructor)
source

define-constructor-rtdclj

(define-constructor-rtd type
                        make-record
                        constructor-symbol
                        constructor-args-symbols
                        field-tuples
                        meta-data)

Defines a constructor based on a record-constructor-fn. This function takes one argument, a list of field symbols.

Defines a constructor based on a record-constructor-fn. This function takes one argument, a list of field symbols.
sourceraw docstring

define-record-type-descriptorclj

(define-record-type-descriptor meta-data type fields rtd-symbol)
source

define-type-functionclj

(define-type-function meta-data
                      type
                      rtd-symbol
                      predicate
                      constructor
                      args
                      field-tuples)
source

document-with-arglistclj

(document-with-arglist n arglist doc)
source

emit-own-record-definitionclj

(emit-own-record-definition type
                            options
                            constructor
                            constructor-args
                            predicate
                            field-tuples
                            opt+specs)
source

global-record-type-registryclj

source

make-get-accessor-from-field-tuple-fnclj

(make-get-accessor-from-field-tuple-fn type
                                       docref
                                       constructor
                                       field-tuples
                                       fields
                                       rtd-symbol
                                       meta-info)

Creating helper function for rtd-record generation

Creating helper function for rtd-record generation
sourceraw docstring

name-docclj

(name-doc field)
source

name-specclj

(name-spec field)
source

prepare-arguments!clj

(prepare-arguments! form ns ?type ?second ?params)

Checks validity of arguments and prepares them for define-record-type call. Returns vector of arguments: [type options constructor constructor-args predicate field-triples opt+specs].

If :nongenerative option is truthy, the given nongenerative-id is registered in the global-record-type-registry. If this id already exists, but the definitions are different, an error is thrown. Otherwise nil is returned.

Checks validity of arguments and prepares them for `define-record-type` call.
Returns vector of arguments:
[type options constructor constructor-args predicate field-triples opt+specs].

If :nongenerative option is truthy, the given nongenerative-id is registered in
the global-record-type-registry. If this id already exists, but the definitions
are different, an error is thrown. Otherwise `nil` is returned.
sourceraw docstring

record-identifierclj/s

source

referenceclj

(reference name)
source

remove-record-typeclj

(remove-record-type nongenerative-id)
source

report-lens-deprecationclj

(report-lens-deprecation type)
source

throw-illegal-argument-exceptionclj

(throw-illegal-argument-exception msg)
source

validate-fields!clj

(validate-fields! fields)

Checks if magics are used in field-names, throws if present

Checks if magics are used in field-names, throws if present
sourceraw docstring

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

× close