starts(with:)
Returns a Boolean value indicating whether the initial elements of this collection are a match for the regex created by the given closure.
Declaration
func starts(@RegexComponentBuilder with content: () -> some RegexComponent) -> BoolParameters
- content:
A closure that returns a regex to match at the beginning of this collection.
Return Value
true if the initial elements of this collection match regex returned by content; otherwise, false.