(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`.
(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))) ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close