Liking cljdoc? Tell your friends :D

active.clojure.simple-types


define-enum-typeclj/smacro

(define-enum-type name pred values)
source

define-record-typeclj/smacro

(define-record-type name & args)
source

define-sum-typeclj/smacro

(define-sum-type name pred types)
source

enum-typeclj/s

(enum-type name values)
source

enum-type?clj/s

(enum-type? v)
source

EnumTypeclj

source

is-of-enum-type?clj/s

(is-of-enum-type? t v)
source

is-of-record-type?clj/s

(is-of-record-type? t v)
source

is-of-sum-type?clj/s

(is-of-sum-type? t v)
source

is-of?clj/s

(is-of? t v)
source

ITypeclj/sprotocol

-is-of?clj/s

(-is-of? this v)

Returns if v is of this type.

Returns if v is of this type.
source

IUnapplyclj/sprotocol

-unapplyclj/s

(-unapply this v)

Return nil if v does not match, or a vector of the values this was composed from.

Return nil if v does not match, or a vector of the values this was composed from.
source

matchclj/smacro

(match v & clauses)

A conditional special form over values, with special deconstructuring support for type implementing IUnapply

A conditional special form over values, with special
deconstructuring support for type implementing IUnapply
sourceraw docstring

record-typeclj/s

(record-type name fields)
source

record-type?clj/s

(record-type? v)
source

RecordTypeclj

source

sum-typeclj/s

(sum-type name types)
source

sum-type?clj/s

(sum-type? v)
source

SumTypeclj

source

type?clj/s

(type? v)
source

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

× close