Pairs
-
Pair of two values.
See morePair
makes no assumptions about the equivalence of types, or order of the values contained herein.Declaration
Swift
public protocol Pair
-
A
See moreSymmetricPair
whose values can be interchanged.Declaration
Swift
public protocol SwappablePair : SymmetricPair
-
Declaration
Swift
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
-
Declaration
Swift
public struct UnorderedPair<T> : SymmetricPair
extension UnorderedPair: CustomStringConvertible
extension UnorderedPair: Equatable where T: Equatable
extension UnorderedPair: Hashable where T: Hashable
extension UnorderedPair: Codable where T: Codable
-
Declaration
Swift
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