Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding chain and repeat (Markov Chains) #20

Open
honungsburk opened this issue Jul 26, 2019 · 0 comments
Open

Adding chain and repeat (Markov Chains) #20

honungsburk opened this issue Jul 26, 2019 · 0 comments

Comments

@honungsburk
Copy link

Wrote two new combinators that let you create Markov chains with lists

chain : a -> List (a -> Generator a) -> Generator (List a)
repeat : Int -> a -> (a -> Generator a) -> Generator (List a)

Repeat is defined by chain.

If you are interested I could submit a PR.

@zwilias zwilias mentioned this issue Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant