Liking cljdoc? Tell your friends :D
All platforms.

harpoons.impl


non-nilclj/s≠macro

clj
(non-nil)
(non-nil x)
(non-nil x & xs)
cljs
(non-nil &form &env)
(non-nil &form &env x)
(non-nil &form &env x & xs)

Return the leftmost non-nil value.

The evaluation is short-circuiting and each form is evaluated at most once.

Examples:

(non-nil)            ; => nil
(non-nil nil true)   ; => true
(non-nil false true) ; => false
Return the leftmost non-nil value.

The evaluation is short-circuiting and each form is evaluated at most once.

Examples:

```clojure
(non-nil)            ; => nil
(non-nil nil true)   ; => true
(non-nil false true) ; => false
```
source (clj)source (cljs)raw docstring

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

× close