StatefulChain

constructor(state: S, seed: S.() -> R, forkState: (S) -> S, gen: suspend S.(R) -> R)(source)

Parameters

S

the state of the chain.

forkState

the function to copy current state without modifying it.