Liking cljdoc? Tell your friends :D

prpr.util.variant


check-map-variantclj/s

(check-map-variant tag)

returns a predicate which will match a variant with tag name n, where a variant type is {:tag <tag> :value <value>}. map variants are required because onyx only processes maps

returns a predicate which will match a variant with
tag name n, where a variant type is {:tag <tag> :value <value>}.
map variants are required because onyx only processes maps
sourceraw docstring

check-tag-valueclj/s

(check-tag-value tag v)

checks if tag value v is equivalent to the specified tag. supports tags as keywords or strings

checks if tag value v is equivalent to the specified tag. supports
tags as keywords or strings
sourceraw docstring

check-variantclj/s

(check-variant tag)

returns a predicate which will match a variant with tag name n (where a variant type is [tag value])

returns a predicate which will match a variant with
tag name n (where a variant type is [tag value])
sourceraw docstring

convert-map-variant-to-vectorclj/s

(convert-map-variant-to-vector m)

onyx messages are always {:tag <tag> :value <value>} versions of variants... convert to [tag value] for client

onyx messages are always {:tag <tag> :value <value>} versions
of variants... convert to [tag value] for client
sourceraw docstring

convert-vector-variant-to-mapclj/s

(convert-vector-variant-to-map v)
source

is-map-variant?clj/s

(is-map-variant? m)
source

is-variant-with-tag?clj/s

(is-variant-with-tag? tag v)
source

is-variant?clj/s

(is-variant? v)
source

kw-or-str->strclj/s

(kw-or-str->str kw-or-str)
source

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

× close