Comparable
protocol Comparable : Equatable
-
Compares the reciever with another and returns their order.
Declaration
Swift
func compare(other: Self) -> Order
SwiftFoundation Docs (100% documented)
protocol Comparable : Equatable
Compares the reciever with another and returns their order.
Swift
func compare(other: Self) -> Order