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