Skip to content

Support maximum repetition count #38

Open
@josephcsible

Description

@josephcsible

Consider the regex \d{,6}. I'd like this library to contain a function replicateAlt that lets me implement this regex as replicateAlt 6 digit. One possible implementation would be a duplicate of replicateM, but with <|> pure [] on the end of the recursive case.

If you like this idea, I can PR it, but I'm not sure which module you want it in.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions