You're viewing version 1.2.0 of true?. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

true?

clojure.core

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

1 Example top

  • user=> (true? true)
    true
    user=> (true? 1)
    false
    user=> (true? (= 1 1))
    true
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:437 top

(defn true?
  "Returns true if x is the value true, false otherwise."
  {:tag Boolean,
   :added "1.0"}
  [x] (clojure.lang.Util/identical x true))
Vars in clojure.core/true?: defn

Comments top

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