Static Methodswift 6.0.1_RegexParser->Swift
tupleElementIndex(of:elementTypes:)
Returns the element index that corresponnds to the given tuple element key path.
static func tupleElementIndex<ElementTypes>(of keyPath: PartialKeyPath<T>, elementTypes: ElementTypes) -> Int? where ElementTypes : Collection, ElementTypes.Element == any Any.Type
Parameters
- keyPath
The key path from a tuple to one of its elements.
- elementTypes
The element type of the tuple type.