General purpose string utilities that returns slices.
TODO: This needs to be spun off into a project of its own
Iterators
iterator splitSlices(s: string; chars: set[char]): Slice[int] {....raises: [], tags: [], forbids: [].}
-
A split iterator that yields slices of the input instead of copies of those slices.
If chars is not found in s, the full range of the string is yielded.
Only yields if s is not empty.
Source Edit