store/[org.clojure/clojure "1.8.0"] clj::clojure.core/booleans

Official Documentation

Add notes
Arities
==================================================
   [xs]

Docstring
==================================================
  Casts to boolean[]

Source

(definline booleans
  "Casts to boolean[]"
  {:added "1.1"}
  [xs] `(. clojure.lang.Numbers booleans ~xs))

Example 1

Edit
;; for fast interop
(set! *warn-on-reflection* true)
;; => true

(defn get-a-bool [bs] (aget bs 1))
;; > Reflection warning, NO_SOURCE_PATH:1 - call to aget can't be resolved.
;; => #'user/get-a-bool

(defn get-a-bool [bs] (let [bs (booleans bs)] (aget bs 1)))
;; => #'user/get-a-bool

Uses on crossclj