You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both implement an Iterator over slices of a string that is being split at a pattern, but std::str::CharSplitsN splits at most N times, yielding N + 1 strings; while regex::RegexSplitsN splits at most N - 1 times, yielding N strings.
This is inconsistent and confusing, and one of them should be changed to have the semantic of the other, however it is unclear which is the better one.