Liking cljdoc? Tell your friends :D

noon.utils.chance


$clj

($ g f)

$*clj

($* g f)

bagclj

(bag xs)

bindclj

(bind g h)

bind*clj

(bind* g h)

coinclj


collectionclj

(collection x
            &
            [{:keys [empty min-size max-size size]
              :or {min-size 0 max-size 50}}])

cubeclj


dataclj

(data x)

decimalclj

(decimal min max)

defcollcljmacro

(defcoll name empty)
(defcoll name empty argv gen-expr)

Helper to define collection generators. The main point is to handle extra options, resulting generators will be callable with or without options, options being given as a map or as a flat sequence of key values.

Helper to define collection generators.
The main point is to handle extra options,
resulting generators will be callable with or without options,
options being given as a map or as a flat sequence of key values.
raw docstring

defgencljmacro

(defgen name return)
(defgen name x & xs)

diceclj

(dice n)

fn->genclj

(fn->gen f)

gencljmacro

(gen & body)

gen?clj

(gen? x)

keepclj

(keep g test)

mapofclj

(mapof k v)
(mapof k v G__8368)
(mapof k v G__8369 G__8370 & G__8371)

natclj

(nat min max)

one-ofclj

(one-of & gens)

one-of*clj

(one-of* gens)

realiseclj

(realise x)

repclj

(rep g n)

sampleclj

(sample n g)

seqofclj

(seqof G__8350)
(seqof G__8350 G__8351)
(seqof G__8350 G__8352 G__8353 & G__8354)

setofclj

(setof G__8362)
(setof G__8362 G__8363)
(setof G__8362 G__8364 G__8365 & G__8366)

tupclj

(tup & xs)

vecofclj

(vecof G__8356)
(vecof G__8356 G__8357)
(vecof G__8356 G__8358 G__8359 & G__8360)

weightedclj

(weighted m)

takes a map of generator(able)/probability ex: (weighted {coin 1 "youpi" 3}) returns a generator that has 3/4 chances to return "youpi" and 1/4 chance to return either true or false

takes a map of generator(able)/probability
ex:
(weighted {coin 1 "youpi" 3})
returns a generator that has 3/4 chances to return "youpi"
and 1/4 chance to return either true or false 
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close