tupelo.gen

Tupelo - Clojure With A Spoonful of Honey

char-alpha

char-alphanumeric

char-eol

A single EOL char

char-whitespace

char-whitespace-eol

char-whitespace-horiz

chars-eol+

One or more EOL chars.

constantly

(constantly arg)
Returns a generator which always yields the supplied argument w/o.
Equivalent to `gen/return` 

identifier

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.

whitespace

whitespace+

whitespace-eol

whitespace-eol+

whitespace-horiz

whitespace-horiz+

word-alpha

word-alpha+

word-alphanumeric

word-alphanumeric+

words-alpha

words-alpha+

words-alphanumeric

words-alphanumeric+