Liking cljdoc? Tell your friends :D

active.clojure.record


define-record-typecljmacro

(define-record-type ?type ?second & ?params)
source

define-singleton-typecljmacro

(define-singleton-type type-name var-name & [predicate-name])

Defines a record type without fields. Instead of a constructor, the single value of this type is bound to var-name.

Defines a record type without fields. Instead of a constructor, the single value of this type is bound to `var-name`.
sourceraw docstring

record-typeclj

(record-type v)

Returns the record type of the given record value.

(define-record-type Foo foo? (make-foo a))

(= Foo (record-type (make-foo :b)))
Returns the record type of the given record value.

```
(define-record-type Foo foo? (make-foo a))

(= Foo (record-type (make-foo :b)))
```
sourceraw docstring

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

× close