Skip to main content

elements

function

clojure.test.check.generators/elements

(elements [coll])
Creates a generator that randomly chooses an element from `coll`. (gen/sample (gen/elements [:foo :bar :baz])) => (:foo :baz :baz :bar :foo :foo :bar :bar :foo :bar)

No examples yet. Be the first to add one!