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