refined
refined copied to clipboard
feat(string): add a splitAt method
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?