Skip to content

Adding chain and repeat (Markov Chains) #20

@honungsburk

Description

@honungsburk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions