SwappablePair

public protocol SwappablePair : SymmetricPair

A SymmetricPair whose values can be interchanged.

  • swapped Extension method

    Declaration

    Swift

    public var swapped: Self { get }

    Return Value

    A SwappablePair wherein the values are swapped for one another.