• (shuffle coll)
DEPRECATED. Prefer clojure.core version.
Return a random permutation of coll

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/seq.clj:151 top

(defn shuffle
  "DEPRECATED. Prefer clojure.core version.
  Return a random permutation of coll"
  {:deprecated "1.2"}
  [coll]
  (let [l (java.util.ArrayList. coll)]
    (java.util.Collections/shuffle l)
    (seq l)))
Vars in clojure.contrib.seq/shuffle: defn let seq shuffle
Used in 0 other vars

Comments top

No comments for shuffle. Log in to add a comment.