Contents

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.