diff options
Diffstat (limited to 'src/boot.clj')
-rw-r--r-- | src/boot.clj | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/boot.clj b/src/boot.clj index 3486d92a..bc8f916f 100644 --- a/src/boot.clj +++ b/src/boot.clj @@ -1569,10 +1569,7 @@ not-every? (comp not every?)) (defn to-array "Returns an array of Objects containing the contents of coll, which can be any Collection. Maps to java.util.Collection.toArray()." - [#^java.util.Collection coll] - (if (zero? (count coll)) - (. clojure.lang.RT EMPTY_ARRAY) - (. coll (toArray)))) + [coll] (. clojure.lang.RT (toArray coll))) (defn to-array-2d "Returns a (potentially-ragged) 2-dimensional array of Objects |