There are two branches with native implementations of stdlib functions, but none for std.splitLimirR yet.
The function needs either two passes over the string (one reverse scan for the nth separator, another to split it starting at this offset) or a temporary array with string slices. The implementation below uses the second, more readable approach.
There are two branches with native implementations of stdlib functions, but none for
std.splitLimirR
yet.The function needs either two passes over the string (one reverse scan for the nth separator, another to split it starting at this offset) or a temporary array with string slices. The implementation below uses the second, more readable approach.