Cross
public struct Cross<T, U> : Pair
extension Cross: CustomStringConvertible
extension Cross: Comparable where T: Comparable, U: Comparable
extension Cross: Equatable where T: Equatable, U: Equatable
extension Cross: Hashable where T: Hashable, U: Hashable
extension Cross: Codable where T: Codable, U: Codable
Pair of two values with potentially different types.
-
The first value contained herein.
Declaration
Swift
public let a: T -
The second value contained herein.
Declaration
Swift
public let b: U
-
Creates a
Crosswith the given values.Declaration
Swift
@inlinable public init(_ a: T, _ b: U)
-
Printable description of
Cross.Declaration
Swift
public var description: String { get }
-
Declaration
Swift
public static func < (lhs: Cross, rhs: Cross) -> BoolReturn Value
true if and only if the first element of
lhsis less than the first element ofrhsOR if those elements are equal and the second element oflhsis less than the second element ofrhs(lexicographic ordering).
View on GitHub
Install in Dash
Cross Structure Reference