Skip to content
New issue

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

feat(string): add a splitAt method #1141

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aurrelhebert
Copy link

@aurrelhebert aurrelhebert commented Dec 6, 2022

closes #1080
After some thoughts, to be able to apply a lot of custom predicates on String we should be able to split the strings based on a user input.
This pull request is a proposal to be able to split a string and verify two predicates on the result.
I implemented at first a SplitAt predicate that take an Index to split the string. Then apply and AND on the two given predicates.

In the same way I can implement a SplitBy predicate that would split into two string when matching the given string input.

What do you think?

@mergify mergify bot added the core label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chaining refined string operation
1 participant