Additional String Processing APIs

Like many of the various String APIs I've read here, the removing methods can be generalized to collections. I came up with a quick gist. I could generalize it further for sequences, but then you couldn't easily check if an affix was actually found and truncated or not.

See another recent post about Sequence.firstDelta(against:).