ArrayList

typesince v0.0-2301Edit
(ArrayList. arr)

Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(deftype ArrayList [^:mutable arr]
  Object
  (add [_ x] (.push arr x))
  (size [_] (alength arr))
  (clear [_] (set! arr (array)))
  (isEmpty [_] (zero? (alength arr)))
  (toArray [_] arr))