Adapted from the Quantum library (alexandergunnarson/quantum).
Adapted from the Quantum library (alexandergunnarson/quantum).
(any? x)
Returns true given any argument.
Returns true given any argument.
(boolean? x)
Return true if x is a Boolean
Return true if x is a Boolean
(case-env & args)
Conditionally compiles depending on the supplied environment (e.g. CLJ, CLJS, CLR).
Conditionally compiles depending on the supplied environment (e.g. CLJ, CLJS, CLR).
(case-env* env)
(case-env* env v)
(case-env* env k v & kvs)
Conditionally compiles depending on the supplied environment (e.g. CLJ, CLJS, CLR).
Conditionally compiles depending on the supplied environment (e.g. CLJ, CLJS, CLR).
(cljs-env? env)
Given an &env from a macro, tells whether it is expanding into CLJS.
Given an &env from a macro, tells whether it is expanding into CLJS.
(defalias orig)
(defalias name orig)
(defalias name orig doc)
Defines an alias for a var: a new var with the same root binding (if any) and similar metadata. The metadata of the alias is its initial metadata (as provided by def) merged into the metadata of the original.
Defines an alias for a var: a new var with the same root binding (if any) and similar metadata. The metadata of the alias is its initial metadata (as provided by def) merged into the metadata of the original.
(double? x)
Return true if x is a Double
Return true if x is a Double
(ident? x)
Return true if x is a symbol or keyword
Return true if x is a symbol or keyword
(kv k->s)
(kv k->s gen-fn)
Based on s/map-spec-impl
Based on `s/map-spec-impl`
(pos-int? x)
Return true if x is a positive fixed precision integer
Return true if x is a positive fixed precision integer
(qualified-keyword? x)
Return true if x is a keyword with a namespace
Return true if x is a keyword with a namespace
(reduce-2 f xs0 xs1)
(reduce-2 f init xs0 xs1)
(reduce-2 f init xs0 xs1 assert-same-count?)
Reduces over two seqables at a time.
Reduces over two seqables at a time.
(seqable? x)
Return true if the seq function is supported for x
Return true if the seq function is supported for x
(simple-symbol? x)
Return true if x is a symbol without a namespace
Return true if x is a symbol without a namespace
(with-gen-spec extract-f gen-spec)
gen-spec
: an fn that returns a spec based on the input.
extract-f
: extracts the piece of data from the input that the generated spec will validate.
E.g.:
(s/explain
(s/with-gen-spec (fn [{:keys [a]}] a) (fn [{:keys [b]}] #(> % b)))
{:a 1 :b 1})
`gen-spec` : an fn that returns a spec based on the input. `extract-f`: extracts the piece of data from the input that the generated spec will validate. E.g.: (s/explain (s/with-gen-spec (fn [{:keys [a]}] a) (fn [{:keys [b]}] #(> % b))) {:a 1 :b 1})
(with-gen-spec-impl extract-f extract-f|form gen-spec gen-spec|form)
Do not call this directly; use 'with-gen-spec'.
Do not call this directly; use 'with-gen-spec'.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close