Contents

compare(_:_:)

Provides the relative ordering of two elements.

Declaration

func compare(_ lhs: Compared, _ rhs: Compared) -> ComparisonResult

Parameters

  • lhs:

    The first element to compare.

  • rhs:

    The second element to compare.

Return Value

The relative ordering between the two elements.