refined icon indicating copy to clipboard operation
refined copied to clipboard

feat(string): add a splitAt method

Open aurrelhebert opened this issue 3 years ago • 0 comments

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?

aurrelhebert avatar Dec 06 '22 14:12 aurrelhebert