OrderedPair

public struct OrderedPair<T> : SwappablePair
extension OrderedPair: CustomStringConvertible
extension OrderedPair: Equatable where T: Equatable
extension OrderedPair: Hashable where T: Hashable
extension OrderedPair: Codable where T: Codable

Pair of two values of the same type for which the order of the values is meaningful.

Instance Properties

  • a

    The first value contained herein.

    Declaration

    Swift

    public let a: T
  • b

    The second value contained herein.

    Declaration

    Swift

    public let b: T

Initializers

  • Creates an OrderedPair with the given values.

    Declaration

    Swift

    @inlinable
    public init(_ a: T, _ b: T)

CustomStringConvertible

  • Printable description of OrderedPair.

    Declaration

    Swift

    public var description: String { get }