store/[org.clojure/clojure "1.8.0"] clj::clojure.core/boolean-array

Official Documentation

Add notes
Arities
==================================================
   [size-or-seq]
   [size init-val-or-seq]

Docstring
==================================================
  Creates an array of booleans

Source

(defn boolean-array
  "Creates an array of booleans"
  {:inline (fn [& args] `(. clojure.lang.Numbers boolean_array ~@args))
   :inline-arities #{1 2}
   :added "1.1"}
  ([size-or-seq] (. clojure.lang.Numbers boolean_array size-or-seq))
  ([size init-val-or-seq] (. clojure.lang.Numbers boolean_array size init-val-or-seq)))

Example 1

Edit
;; create an array of Java boolean's using boolean-array
;; and demonstrate that it can be used for input into the standard
;; Java Arrays.fill function

(def bs (boolean-array (map even? (range 3 10))))
;; => #'user/bs

(type bs)
;; => [Z

(vec bs)
;; => [false true false true false true false]

(java.util.Arrays/fill bs 3 7 false)
;; => nil

(vec bs)
;; => [false true false false false false false]

Uses on crossclj