trimPrefix(_:)
Removes the initial elements that matches the given regex.
Declaration
mutating func trimPrefix(_ regex: some RegexComponent)Parameters
- regex:
The regex to remove from this collection.
Removes the initial elements that matches the given regex.
mutating func trimPrefix(_ regex: some RegexComponent)The regex to remove from this collection.