Add splitn, rsplit and rsplitn equivalents to strings.

This commit is contained in:
Stephen Chung
2021-02-23 11:56:04 +08:00
parent 7f0d7f1bc7
commit ac3d8e35d4
3 changed files with 60 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ Enhancements
* Error position in `eval` statements is now wrapped in an `EvalAltResult::ErrorInFunctionCall`.
* `Position` now implements `Add` and `AddAssign`.
* `Scope` now implements `IntoIterator`.
* Strings now have the `split_rev` method and variations of `split` with maximum number of segments.
Version 0.19.12