Open
Description
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.