Liking cljdoc? Tell your friends :D

noon.utils.chance


$clj

($ g f)
source

$*clj

($* g f)
source

bagclj

(bag xs)
source

bindclj

(bind g h)
source

bind*clj

(bind* g h)
source

coinclj

source

collectionclj

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

cubeclj

source

dataclj

(data x)
source

decimalclj

(decimal min max)
source

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.
sourceraw docstring

defgencljmacro

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

diceclj

(dice n)
source

fn->genclj

(fn->gen f)
source

gencljmacro

(gen & body)
source

gen?clj

(gen? x)
source

keepclj

(keep g test)
source

mapofclj

(mapof k v)
(mapof k v G__11670)
(mapof k v G__11671 G__11672 & G__11673)
source

natclj

(nat min max)
source

one-ofclj

(one-of & gens)
source

one-of*clj

(one-of* gens)
source

realiseclj

(realise x)
source

repclj

(rep g n)
source

sampleclj

(sample n g)
source

seqofclj

(seqof G__11652)
(seqof G__11652 G__11653)
(seqof G__11652 G__11654 G__11655 & G__11656)
source

setofclj

(setof G__11664)
(setof G__11664 G__11665)
(setof G__11664 G__11666 G__11667 & G__11668)
source

tupclj

(tup & xs)
source

vecofclj

(vecof G__11658)
(vecof G__11658 G__11659)
(vecof G__11658 G__11660 G__11661 & G__11662)
source

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 
sourceraw docstring

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

× close