tupelo.gen
Tupelo - Clojure With A Spoonful of Honey
constantly
(constantly arg)
Returns a generator which always yields the supplied argument w/o.
Equivalent to `gen/return`
maybe-vec
(maybe-vec gen-arg)
Given a string generator, randomly return either the original string or a vector of its chars.
rand-nth
(rand-nth coll)
Returns a generator yielding a random element from the supplied collection.
Equivalent to `gen/elements`
txt-join
(txt-join xgen)
Wraps the supplied generator using clojure.string/join.
txt-join-space
(txt-join-space xgen)
Wraps the supplied generator using #(clojure.string/join \space %).
vector+
(vector+ gen-arg)
Return a non-empty vector (1 or more items) selected using the supplied generator.