Liking cljdoc? Tell your friends :D

gradual.impl.util

Adapted from the Quantum library (alexandergunnarson/quantum).

Adapted from the Quantum library (alexandergunnarson/quantum).
raw docstring

>keywordclj/s

(>keyword x)
source

any?clj/s≠

clj
(any? x)

Returns true given any argument.

Returns true given any argument.
cljs
source (clj)source (cljs)raw docstring

boolean?clj/s≠

clj
(boolean? x)

Return true if x is a Boolean

Return true if x is a Boolean
cljs
source (clj)source (cljs)raw docstring

case-envclj/smacro

(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).
sourceraw docstring

case-env*clj/smacro

(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).
sourceraw docstring

case-env|matches?clj/s

(case-env|matches? env k)
source

cljs-env?clj/s

(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.
sourceraw docstring

defaliasclj/smacro

(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.
sourceraw docstring

defalias*clj

(defalias* orig-var ns-name- var-name)
source

double?clj/s≠

clj
(double? x)

Return true if x is a Double

Return true if x is a Double
cljs
source (clj)source (cljs)raw docstring

env-langclj/smacro

(env-lang)
source

fn1clj/smacro

(fn1 f & args)
source

fnlclj/smacro

(fnl f & args)
source

ident?clj/s≠

clj
(ident? x)

Return true if x is a symbol or keyword

Return true if x is a symbol or keyword
cljs
source (clj)source (cljs)raw docstring

kvclj/s

(kv k->s)
(kv k->s gen-fn)

Based on s/map-spec-impl

Based on `s/map-spec-impl`
sourceraw docstring

pos-int?clj/s≠

clj
(pos-int? x)

Return true if x is a positive fixed precision integer

Return true if x is a positive fixed precision integer
cljs
source (clj)source (cljs)raw docstring

qualified-keyword?clj/s≠

clj
(qualified-keyword? x)

Return true if x is a keyword with a namespace

Return true if x is a keyword with a namespace
cljs
source (clj)source (cljs)raw docstring

reduce-2clj/s

(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.
sourceraw docstring

reduceiclj/s

(reducei f init xs)

reduce, indexed.

`reduce`, indexed.
sourceraw docstring

seqable?clj/s≠

clj
(seqable? x)

Return true if the seq function is supported for x

Return true if the seq function is supported for x
cljs
source (clj)source (cljs)raw docstring

simple-symbol?clj/s≠

clj
(simple-symbol? x)

Return true if x is a symbol without a namespace

Return true if x is a symbol without a namespace
cljs
source (clj)source (cljs)raw docstring

val?clj/s

source

validateclj/s

(validate spec x)
source

with-gen-specclj/smacro

(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})
sourceraw docstring

with-gen-spec-implclj/s

(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'.
sourceraw docstring

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

× close