Liking cljdoc? Tell your friends :D

spectrum.types


*clj

(* x)
source

+clj

(+ x)
source

?clj

(? x)
source

accept-tclj

(accept-t & args__6031__auto__)
source

accept-t?clj

(accept-t? x__6025__auto__)
source

alt-tclj

(alt-t ps)
source

alt-t?clj

(alt-t? x__6025__auto__)
source

alt-typesclj

(alt-types x)
source

ancestorsclj

(ancestors t)
source

and-classes-compatible?clj

(and-classes-compatible? ts)

True if the and-t classes are compatible (doesn't contain concrete classes that aren't ancestors)

True if the `and-t` `class`es are compatible (doesn't contain concrete classes that aren't ancestors)
sourceraw docstring

and-conjclj

(and-conj s x)
source

and-consolidateclj

(and-consolidate ts)

Given the types for an and, simplify and consolidate types, returning a seq of types

Given the types for an `and`, simplify and consolidate types, returning a seq of types
sourceraw docstring

and-nots-compatible?clj

(and-nots-compatible? ts)

True if ts does not contains ?x and (not-t ?x)

True if ts does not contains ?x and (not-t ?x)
sourceraw docstring

and-restclj

(and-rest a)
source

and-tclj

(and-t ts)
source

and-t?clj

(and-t? x__6025__auto__)
source

and-typesclj

(and-types a)
source

and-values-compatible?clj

(and-values-compatible? ts)

true if and ts does not contain two non-equal values

true if `and` ts does not contain two non-equal values
sourceraw docstring

any-t?clj

(any-t? t)
source

canonicalizeclj

(canonicalize t)

Given a type, convert to it's most precise version

Given a type, convert to it's most precise version
sourceraw docstring

cat-lengthclj

(cat-length t)

Given a cat, return its length

Given a cat, return its length
sourceraw docstring

cat-tclj

(cat-t ts)
source

cat-t?clj

(cat-t? x__6025__auto__)
source

cat-typesclj

(cat-types x)
source

class-castclj

(class-cast t)

cast to class-t If the type can be cast without losing precision, else nil

cast to class-t If the type can be cast without losing precision, else nil
sourceraw docstring

class-tclj

(class-t x)
source

class-t?clj

(class-t? x__6025__auto__)
source

class-valueclj

source

coll-ofclj

(coll-of & args__6031__auto__)
source

conformy?clj

(conformy? t)
source

core-predicatesclj

(core-predicates)
source

defn-tagged-typecljmacro

(defn-tagged-type name tag)

defn ~name as a fn that constructs a vector tagged type

defn ~name as a fn that constructs a vector tagged type
sourceraw docstring

defn-type-predcljmacro

(defn-type-pred name tag)
source

derive-typeclj

(derive-type parent type)
(derive-type h parent type)

clojure.core/derive, but patched to allow types.

Note arguments are reversed from clojure.core/derive, to resemble (valid? x y)

clojure.core/derive, but patched to allow types.

Note arguments are reversed from clojure.core/derive, to resemble (valid? x y)
sourceraw docstring

equiv-typesclj

source

fn-argsclj

(fn-args f-t)

Return an or of all arities this fn will accept

Return an `or` of all arities this fn will accept
sourceraw docstring

fn-retclj

(fn-ret f-t)

Return an or of all types this fn may return

Return an `or` of all types this fn may return
sourceraw docstring

fn-tclj

(fn-t m)
source

fn-t?clj

(fn-t? x__6025__auto__)
source

freshenclj

(freshen form)

Walk form, replacing all logic variables with unique versions

Walk form, replacing all logic variables with unique versions
sourceraw docstring

get-equiv-typesclj

(get-equiv-types t)
sourceraw docstring

get-lvarsclj

(get-lvars expr)

Return a set of logic variables in expression

Return a set of logic variables in expression
sourceraw docstring

ignore?clj

source

instance-or-t?clj

(instance-or-t? t)
source

invalidclj

(invalid & args__6031__auto__)
source

invalid?clj

(invalid? x__6025__auto__)
source

invoke-tclj

(invoke-t & args__6031__auto__)
source

invoke-t?clj

(invoke-t? x__6025__auto__)
source

join-not-pairsclj

(join-not-pairs ts)

If two types in ts are (not x) and x, replace them with any?

If two types in ts are (not x) and x, replace them with any?
sourceraw docstring

keys-tclj

(keys-t & args__6031__auto__)
source

load-type-hierarchyclj

(load-type-hierarchy)
source

logic-nameclj

(logic-name x)
source

logic?clj

(logic? x)
source

map-entryclj

(map-entry & args__6031__auto__)
source

map-ofclj

(map-of & args__6031__auto__)
source

maybe-catclj

(maybe-cat args)
source

maybe-tclj

(maybe-t & args__6031__auto__)
source

maybe-t?clj

(maybe-t? x__6025__auto__)
source

maybe-valueclj

source

merge-fnsclj

(merge-fns fns)
source

new-logicclj

(new-logic)
(new-logic prefix)
source

nilableclj

(nilable x)
source

not-core-predicatesclj

source

not-tclj

(not-t & args__6031__auto__)
source

not-t?clj

(not-t? x__6025__auto__)
source

not-valueclj

source

ns-predicatesclj

(ns-predicates ns)

Return all var predicates in ns

Return all var predicates in ns
sourceraw docstring

object-t?clj

(object-t? t)
source

or-consolidateclj

(or-consolidate ts)
source

or-tclj

(or-t ts)
source

or-t?clj

(or-t? x__6025__auto__)
source

or-typesclj

source

parentsclj

(parents t)

Same as clojure.core/parents, but for types

Same as clojure.core/parents, but for types
sourceraw docstring

predicate-symbol?clj

(predicate-symbol? x)
source

protocol-tclj

(protocol-t & args__6031__auto__)
source

recur-tclj

(recur-t & args__6031__auto__)
source

regex?cljmultimethod

source

renameclj

(rename m form)

Given a map of lvars to lvars, walk form and replace all instances of keys values

Given a map of lvars to lvars, walk form and replace all instances
of keys values
sourceraw docstring

seq-ofclj

(seq-of & args__6031__auto__)
source

seq-t?clj

(seq-t? x__6025__auto__)
source

seq-valueclj

source

set-equiv-types!clj

(set-equiv-types! x y)

Define types x and y as being equivalent

Define types x and y as being equivalent
sourceraw docstring

simplify-aritiesclj

(simplify-arities fn-map)

Merge fn arities with the same return type and same number of arguments

Merge fn arities with the same return type and same number of arguments
sourceraw docstring

spec-tclj

(spec-t & args__6031__auto__)
source

spec-t?clj

(spec-t? x__6025__auto__)
source

tagged-type?clj

(tagged-type? name x)
source

tagged?clj

(tagged? t)
source

throw-tclj

(throw-t & args__6031__auto__)
source

type-counterclj

source

type-tagclj

(type-tag t)
source

type-valueclj

(type-value t)
source

type-valuesclj

(type-values t)
source

type?clj

(type? x)
source

types-hierarchyclj

source

value-tclj

(value-t & args__6031__auto__)
source

value-t?clj

(value-t? x__6025__auto__)
source

value-valueclj

source

vector-ofclj

(vector-of & args__6031__auto__)
source

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

× close