Liking cljdoc? Tell your friends :D

eg.platform


->cljclj/s

(->clj datum)
source

cljs-env?clj/s

(cljs-env? env)

Take the &env from a macro, and tell whether we are expanding into cljs. Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing

Take the &env from a macro, and tell whether we are expanding into cljs.
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
sourceraw docstring

cross-invalid-spec-kwclj/s

source

cross-throwclj/s

(cross-throw msg)
source

deftestclj/smacro

(deftest & args)
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
sourceraw docstring

equal-ex?clj/s

(equal-ex? & args)

Same as 'equal?', but for expression tests.

Same as 'equal?', but for expression tests.
sourceraw docstring

equal?clj/s

(equal? & args)

Create alias for '=, so that we don't override or be overriden by libraries dispatching on '= for clojure.test/assert-expr, and to apply our custom clojure.test/assert-expr only to function tests, i.e., not expression tests.

Create alias for '=, so that we don't override or be overriden by libraries
dispatching on '= for clojure.test/assert-expr, and to apply our custom
clojure.test/assert-expr only to function tests, i.e., not expression tests.
sourceraw docstring

explain-dataclj/s

(explain-data & args)

By wrapping spec/explain-data inside this function, prevents the macro using this code from expanding the wrong version of explain-data - clojure.spec.alpha/explain-data.

By wrapping spec/explain-data inside this function, prevents the macro using this code
from expanding the wrong version of explain-data - clojure.spec.alpha/explain-data.
sourceraw docstring

fn-identity-interceptclj/s

(fn-identity-intercept arg)

Create alias for 'fn, so that we don't override or be overriden by libraries dispatching on 'fn for clojure.test/assert-expr.

Create alias for 'fn, so that we don't override or be overriden by libraries
dispatching on 'fn for clojure.test/assert-expr.
sourceraw docstring

if-cljsclj/smacro

(if-cljs then & [else])

Return then if we are generating cljs code and else for Clojure code. Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing

Return then if we are generating cljs code and else for Clojure code.
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
sourceraw docstring

invalid-spec?clj/s

(invalid-spec? & args)

Complement of valid-spec? to able a distinct dispatch fn arg in clojure.test/assert-expr.

Complement of valid-spec? to able a distinct dispatch fn arg in clojure.test/assert-expr.
sourceraw docstring

isclj/smacro

(is & args)
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
sourceraw docstring

pred-exclj/s

(pred-ex arg)

Meant to be used as a clojure.test/assert-expr dispatch value on truthy expression tests.

Meant to be used as a clojure.test/assert-expr dispatch value on truthy expression tests.
sourceraw docstring

testingclj/smacro

(testing & args)
source

valid-expected-spec?clj/s

(valid-expected-spec? & args)

Play fairly with other libraries dispatching with clojure.spec.alpha/valid? for clojure.test/assert-expr.

Play fairly with other libraries dispatching with clojure.spec.alpha/valid? for clojure.test/assert-expr.
sourceraw docstring

valid-spec?clj/s

(valid-spec? & args)

Solves a clojure.spec.alpha/valid? resolve issue in cljs JVM. Check client code for use cases.

Solves a clojure.spec.alpha/valid? resolve issue in cljs JVM.
Check client code for use cases.
sourceraw docstring

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

× close