1.2.0 permalink Arrow_down_16x16
  • (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_utils.clj:155 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-utils/shuffle: defn let seq shuffle
Used in 0 other vars

Comments top

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