Skip to content

Commit

Permalink
Document that vec will alias Java arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenton Ashworth authored and stuarthalloway committed May 18, 2012
1 parent 3f1e1f1 commit 82fb40a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clj/clojure/core.clj
Expand Up @@ -338,7 +338,8 @@
(. clojure.lang.LazilyPersistentVector (create (cons a (cons b (cons c (cons d args))))))))

(defn vec
"Creates a new vector containing the contents of coll."
"Creates a new vector containing the contents of coll. Java arrays
will be aliased and should not be modified."
{:added "1.0"
:static true}
([coll]
Expand Down

0 comments on commit 82fb40a

Please sign in to comment.