• (nil? x)
Returns true if x is nil, false otherwise.

1 Example top

  • user=> (nil? nil)
    true
    user=> (nil? 0)
    false
    user=> (nil? false)
    false
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:397 top

(defn nil?
  "Returns true if x is nil, false otherwise."
  {:tag Boolean
   :added "1.0"
   :static true
   :inline (fn [x] (list 'clojure.lang.Util/identical x nil))}
  [x] (clojure.lang.Util/identical x nil))
Vars in clojure.core/nil?:
Used in 0 other vars

Comments top

No comments for nil?. Log in to add a comment.