Liking cljdoc? Tell your friends :D

active.clojure.sum-type


check-predicates!clj

(check-predicates! type-tree predicates has-default)
source

clause->predicateclj

(clause->predicate clause)
source

clause-with-extraction-clauseclj

(clause-with-extraction-clause ClauseWithExtraction)

Lens for the clause field from a [[ClauseWithExtraction]] record. See active.clojure.sum-type/make-clause-with-extraction.

Lens for the `clause` field from a [[ClauseWithExtraction]] record. See [[active.clojure.sum-type/make-clause-with-extraction]].
sourceraw docstring

clause-with-extraction-constructor-callclj

(clause-with-extraction-constructor-call ClauseWithExtraction)

Lens for the constructor-call field from a [[ClauseWithExtraction]] record. See active.clojure.sum-type/make-clause-with-extraction.

Lens for the `constructor-call` field from a [[ClauseWithExtraction]] record. See [[active.clojure.sum-type/make-clause-with-extraction]].
sourceraw docstring

clause-with-extraction-ordered-accessorsclj

(clause-with-extraction-ordered-accessors ClauseWithExtraction)

Lens for the ordered-accessors field from a [[ClauseWithExtraction]] record. See active.clojure.sum-type/make-clause-with-extraction.

Lens for the `ordered-accessors` field from a [[ClauseWithExtraction]] record. See [[active.clojure.sum-type/make-clause-with-extraction]].
sourceraw docstring

clause-with-extraction-predicateclj

(clause-with-extraction-predicate ClauseWithExtraction)

Lens for the predicate field from a [[ClauseWithExtraction]] record. See active.clojure.sum-type/make-clause-with-extraction.

Lens for the `predicate` field from a [[ClauseWithExtraction]] record. See [[active.clojure.sum-type/make-clause-with-extraction]].
sourceraw docstring

clause-with-extraction?clj

(clause-with-extraction? thing)

Is object a ClauseWithExtraction record? See active.clojure.sum-type/make-clause-with-extraction.

Is object a `ClauseWithExtraction` record? See [[active.clojure.sum-type/make-clause-with-extraction]].
sourceraw docstring

clause-with-predicate-clauseclj

(clause-with-predicate-clause CaluseWithPredicate)

Lens for the clause field from a [[CaluseWithPredicate]] record. See active.clojure.sum-type/make-clause-with-predicate.

Lens for the `clause` field from a [[CaluseWithPredicate]] record. See [[active.clojure.sum-type/make-clause-with-predicate]].
sourceraw docstring

clause-with-predicate-predicateclj

(clause-with-predicate-predicate CaluseWithPredicate)

Lens for the predicate field from a [[CaluseWithPredicate]] record. See active.clojure.sum-type/make-clause-with-predicate.

Lens for the `predicate` field from a [[CaluseWithPredicate]] record. See [[active.clojure.sum-type/make-clause-with-predicate]].
sourceraw docstring

clause-with-predicate?clj

(clause-with-predicate? thing)

Is object a CaluseWithPredicate record? See active.clojure.sum-type/make-clause-with-predicate.

Is object a `CaluseWithPredicate` record? See [[active.clojure.sum-type/make-clause-with-predicate]].
sourceraw docstring

collect-leafsclj

(collect-leafs type-tree)
source

default-clause-clauseclj

(default-clause-clause DefaultClause)

Lens for the clause field from a [[DefaultClause]] record. See active.clojure.sum-type/make-default-clause.

Lens for the `clause` field from a [[DefaultClause]] record. See [[active.clojure.sum-type/make-default-clause]].
sourceraw docstring

default-clause?clj

(default-clause? thing)

Is object a DefaultClause record? See active.clojure.sum-type/make-default-clause.

Is object a `DefaultClause` record? See [[active.clojure.sum-type/make-default-clause]].
sourceraw docstring

define-sum-typecljmacro

(define-sum-type type-name predicate predicates)
source

expand-clause-formsclj

(expand-clause-forms clause arg)
source

has-default?clj

(has-default? parsed-clauses)
source

make-clause-with-extractionclj

(make-clause-with-extraction predicate
                             constructor-call
                             clause
                             ordered-accessors)
Construct a `ClauseWithExtraction` record.

`predicate`: access via [[active.clojure.sum-type/clause-with-extraction-predicate]]
`constructor-call`: access via [[active.clojure.sum-type/clause-with-extraction-constructor-call]]
`clause`: access via [[active.clojure.sum-type/clause-with-extraction-clause]]
`ordered-accessors`: access via [[active.clojure.sum-type/clause-with-extraction-ordered-accessors]]
sourceraw docstring

make-clause-with-predicateclj

(make-clause-with-predicate predicate clause)

Construct a CaluseWithPredicate record.

predicate: access via active.clojure.sum-type/clause-with-predicate-predicate clause: access via active.clojure.sum-type/clause-with-predicate-clause

Construct a `CaluseWithPredicate` record.

`predicate`: access via [[active.clojure.sum-type/clause-with-predicate-predicate]]
`clause`: access via [[active.clojure.sum-type/clause-with-predicate-clause]]
sourceraw docstring

make-default-clauseclj

(make-default-clause clause)

Construct a DefaultClause record.

clause: access via active.clojure.sum-type/default-clause-clause

Construct a `DefaultClause` record.

`clause`: access via [[active.clojure.sum-type/default-clause-clause]]
sourceraw docstring

make-record-metaclj

(make-record-meta predicate constructor ordered-accessors)

Construct a RecordMeta record.

predicate: access via active.clojure.sum-type/record-meta-predicate constructor: access via active.clojure.sum-type/record-meta-constructor ordered-accessors: access via active.clojure.sum-type/record-meta-ordered-accessors

Construct a `RecordMeta` record.

`predicate`: access via [[active.clojure.sum-type/record-meta-predicate]]
`constructor`: access via [[active.clojure.sum-type/record-meta-constructor]]
`ordered-accessors`: access via [[active.clojure.sum-type/record-meta-ordered-accessors]]
sourceraw docstring

make-sum-type-metaclj

(make-sum-type-meta predicate types)

Construct a SumTypeMeta record.

predicate: access via active.clojure.sum-type/sum-type-meta-predicate types: access via active.clojure.sum-type/sum-type-meta-types

Construct a `SumTypeMeta` record.

`predicate`: access via [[active.clojure.sum-type/sum-type-meta-predicate]]
`types`: access via [[active.clojure.sum-type/sum-type-meta-types]]
sourceraw docstring

matchcljmacro

(match sum-type-predicate arg & clauses)
source

parse-clause-with-extractionclj

(parse-clause-with-extraction condition clause sum-type-meta)
source

parse-clausesclj

(parse-clauses paired-clauses sum-type-meta)
source

predicate->sum-type-metaclj

(predicate->sum-type-meta predicate)
source

record-meta-constructorclj

(record-meta-constructor RecordMeta)

Lens for the constructor field from a [[RecordMeta]] record. See active.clojure.sum-type/make-record-meta.

Lens for the `constructor` field from a [[RecordMeta]] record. See [[active.clojure.sum-type/make-record-meta]].
sourceraw docstring

record-meta-ordered-accessorsclj

(record-meta-ordered-accessors RecordMeta)

Lens for the ordered-accessors field from a [[RecordMeta]] record. See active.clojure.sum-type/make-record-meta.

Lens for the `ordered-accessors` field from a [[RecordMeta]] record. See [[active.clojure.sum-type/make-record-meta]].
sourceraw docstring

record-meta-predicateclj

(record-meta-predicate RecordMeta)

Lens for the predicate field from a [[RecordMeta]] record. See active.clojure.sum-type/make-record-meta.

Lens for the `predicate` field from a [[RecordMeta]] record. See [[active.clojure.sum-type/make-record-meta]].
sourceraw docstring

record-meta?clj

(record-meta? thing)

Is object a RecordMeta record? See active.clojure.sum-type/make-record-meta.

Is object a `RecordMeta` record? See [[active.clojure.sum-type/make-record-meta]].
sourceraw docstring

remove-predicateclj

(remove-predicate type-tree predicate)
source

sum-type-meta-predicateclj

(sum-type-meta-predicate SumTypeMeta)

Lens for the predicate field from a [[SumTypeMeta]] record. See active.clojure.sum-type/make-sum-type-meta.

Lens for the `predicate` field from a [[SumTypeMeta]] record. See [[active.clojure.sum-type/make-sum-type-meta]].
sourceraw docstring

sum-type-meta-typesclj

(sum-type-meta-types SumTypeMeta)

Lens for the types field from a [[SumTypeMeta]] record. See active.clojure.sum-type/make-sum-type-meta.

Lens for the `types` field from a [[SumTypeMeta]] record. See [[active.clojure.sum-type/make-sum-type-meta]].
sourceraw docstring

sum-type-meta?clj

(sum-type-meta? thing)

Is object a SumTypeMeta record? See active.clojure.sum-type/make-sum-type-meta.

Is object a `SumTypeMeta` record? See [[active.clojure.sum-type/make-sum-type-meta]].
sourceraw docstring

sum-type-predicate?clj

(sum-type-predicate? type-or-predicate)
source

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

× close