match(_:)

Test if a given string matches the pattern

Pattern+Match.swift:27
func match(_ name: some StringProtocol) -> Bool

Parameters

name

The string to match against

Returns

true if the string matches the pattern