We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
would it be possible to have a findAll method that returns all matches in a string?
findAll
The text was updated successfully, but these errors were encountered:
I think this works? (warning: it may not work) It is meant to be like in other languages' behavior where the matches are non-overlapping.
findAll :: RE s a -> [s] -> [a] findAll = unfoldr . findFirstPrefix . (few anySym *>)
If you'd like I can write some tests and make a PR :)
Sorry, something went wrong.
No branches or pull requests
would it be possible to have a
findAll
method that returns all matches in a string?The text was updated successfully, but these errors were encountered: