Liking cljdoc? Tell your friends :D
Clojure only.

ninja.unifier.helpers

Unifier helper functions.

Unifier helper functions.
raw docstring

cljs?clj

(cljs? env)

Checks &env in macro and returns true if that cljs env. Otherwise false.

Checks &env in macro and returns `true` if that cljs env. Otherwise `false`.
sourceraw docstring

try-orcljmacro

(try-or body)
(try-or body res)

Extended version of try-catch. Usage:

  • (try-or (/ 1 0)) ;; => nil
  • (try-or (/ 1 0) false) ;; => false
  • (try-or (/ 1 0) #(prn (.getMessage %))) ;; => "Divide by zero"
Extended version of try-catch.
Usage:
 * (try-or (/ 1 0))                        ;; => nil
 * (try-or (/ 1 0) false)                  ;; => false
 * (try-or (/ 1 0) #(prn (.getMessage %))) ;; => "Divide by zero"
sourceraw docstring

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

× close