Liking cljdoc? Tell your friends :D

emmy.util

Shared utilities between clojure and clojurescript.

Shared utilities between clojure and clojurescript.
raw docstring

arithmetic-exclj/s

(arithmetic-ex s)
source

bigintclj/s

(bigint x)
source

bigint?clj/s

(bigint? x)

Returns true if the supplied x is a BigInt, false otherwise.

Returns true if the supplied `x` is a `BigInt`, false otherwise.
sourceraw docstring

bigintegerclj/s

(biginteger x)
source

biginttypeclj/s

source

compute-absclj/s

source

compute-exptclj/s

source

compute-sqrtclj/s

source

copy-nsclj/smacro

(copy-ns ns-sym sci-ns)
(copy-ns ns-sym sci-ns opts)
source

countedclj/s

(counted f)
(counted f initial-count)

Takes a function and returns a pair of:

  • an atom that keeps track of fn invocation counts,
  • the instrumented fn
Takes a function and returns a pair of:

- an atom that keeps track of fn invocation counts,
- the instrumented fn
sourceraw docstring

doubleclj/s

(double x)
source

exceptionclj/s

(exception s)
source

failure-to-convergeclj/s

(failure-to-converge s)
source

illegalclj/s

(illegal s)
source

illegal-stateclj/s

(illegal-state s)
source

intclj/s

(int x)
source

interruptedclj/s

(interrupted s)
source

inttypeclj/s

source

keysetclj/s

(keyset m)
source

longclj/s

(long x)
source

longtypeclj/s

source

machine-epsilonclj/s

source

map-valsclj/s

(map-vals f m)

Returns a map of identical type and key set to m, with each value v transformed by the supplied functionf into (f v).

Returns a map of identical type and key set to `m`, with each value `v`
transformed by the supplied function`f` into `(f v)`.
sourceraw docstring

nan?clj/s

(nan? x)
source

parse-bigintclj/s

(parse-bigint x)
source

parse-doubleclj/s

(parse-double s)
source

parse-intclj/s

(parse-int s)
source

re-matches?clj/s

(re-matches? re s)

Returns true if s matches the regex pattern re, false otherwise.

Returns true if s matches the regex pattern re, false otherwise.
sourceraw docstring

sci-macroclj/smacro

(sci-macro name & body)

Like defmacro but when emitting cljs, emits a function with &env and &form prepended to arglists and :sci/macro metadata, so that the macro can be imported into sci using copy-var.

Like `defmacro` but when emitting cljs, emits a function
with &env and &form prepended to arglists and :sci/macro metadata,
so that the macro can be imported into sci using copy-var.
sourceraw docstring

sqrt-machine-epsilonclj/s

source

throwable?clj/s

(throwable? t)
source

timeout-exclj/s

(timeout-ex s)
source

unsupportedclj/s

(unsupported s)
source

uuidclj/s

(uuid)

Returns a string containing a randomly generated unique identifier.

Returns a string containing a randomly generated unique identifier.
sourceraw docstring

without-symbol-namespacesclj/s

(without-symbol-namespaces x)

Walks x, removing namespaces from any symbols that are found. Convenient in unit tests, where the distinction between symbols in clojure.core vs. cljs.core is unimportant

Walks x, removing namespaces from any symbols that are found.
Convenient in unit tests, where the distinction between symbols
in `clojure.core` vs. `cljs.core` is unimportant
sourceraw docstring

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

× close