elm-community / elm-community/random-extra

Adding chain and repeat (Markov Chains)

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
28
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.