Contents

firstIndex(of:)

Returns the index of the given element in the set, or nil if the element is not a member of the set.

Declaration

func firstIndex(of element: MarkupOrderedSet.Element) -> Int?

Discussion

MarkupOrderedSet members are always unique, so the first index of an element is always the same as its last index.

See Also

Finding elements