StatefulChain

fun <S, out R> StatefulChain(state: S, seed: S.() -> R, forkState: (S) -> S, gen: suspend S.(R) -> R)

Parameters

S

the state of the chain.

forkState

the function to copy current state without modifying it.

Sources

common source
Link copied to clipboard