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.
-
The first value contained herein.
Declaration
Swift
public let a: T
-
The second value contained herein.
Declaration
Swift
public let b: T
-
Creates an
OrderedPair
with the given values.Declaration
Swift
@inlinable public init(_ a: T, _ b: T)
-
Printable description of
OrderedPair
.Declaration
Swift
public var description: String { get }