• (booleans xs)
Casts to boolean[]

1 Example top

  • ;; for fast interop
    user=> (set! *warn-on-reflection* true)
    user=> (defn get-a-bool [bs] (aget bs 1))
    Reflection warning, NO_SOURCE_PATH:1 - call to aget can't be resolved.
    user=> (defn get-a-bool [bs] (let [bs (booleans bs)] (aget bs 1)))
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:4665 top

(definline booleans
  "Casts to boolean[]"
  {:added "1.1"}
  [xs] `(. clojure.lang.Numbers booleans ~xs))
Vars in clojure.core/booleans:
Used in 0 other vars

Comments top

No comments for booleans. Log in to add a comment.