[Proposal]: System.String.RSplit #8558
Replies: 1 comment 1 reply
-
API requests go in dotnet/runtime |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This should behave exactly like the System.String.Split overloads that accept
count
, except we start counting delimiters from the right instead of the left.Python exposes this as rsplit (tests showing behavior here). (Note that Python's
maxsplit
parameter has a bit different semantics than C#'scount
.)Alternatively, instead of adding a new
RSplit
method, I could see this also being implemented as a newStringSplitOptions
.Beta Was this translation helpful? Give feedback.
All reactions