(compile-if exp then & [else])
Evaluate exp
and if it returns logical true and doesn't error, expand to
then
. Else expand to else
.
(compile-if (Class/forName "java.util.concurrent.ForkJoinTask")
(do-cool-stuff-with-fork-join)
(fall-back-to-executor-services))
Taken from https://github.com/clojure/clojure/blob/master/src/clj/clojure/core/reducers.clj#L24
Evaluate `exp` and if it returns logical true and doesn't error, expand to `then`. Else expand to `else`. (compile-if (Class/forName "java.util.concurrent.ForkJoinTask") (do-cool-stuff-with-fork-join) (fall-back-to-executor-services)) Taken from https://github.com/clojure/clojure/blob/master/src/clj/clojure/core/reducers.clj#L24
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close