/// You can use any type that conforms to the `Hashable` protocol in a set or

/// as a dictionary key. Many types in the standard library conform to

/// `Hashable`: Strings, integers, floating-point and Boolean values, and even

/// sets provide a hash value by default. Your own custom types can be

/// hashable as well.

 

public protocol Hashable : Equatable {

 

    public var hashValue: Int { get }

}

 

/// A hash value, provided by a type's `hashValue` property, is an integer that

/// is the same for any two instances that compare equally. That is, for two

/// instances `a` and `b` of the same type, if `a == b`, then

/// `a.hashValue == b.hashValue`. The reverse is not true: Two instances with

/// equal hash values are not necessarily equal to each other.

 

 

 

public protocol Equatable {

    public static func == (lhs: Self, rhs: Self) -> Bool

}

 

extension Equatable {

    public static func != (lhs: Self, rhs: Self) -> Bool

}

 

public func === (lhs: Swift.AnyObject?, rhs: Swift.AnyObject?) -> Bool

public func !== (lhs: Swift.AnyObject?, rhs: Swift.AnyObject?) -> Bool

 

///     let a = IntegerRef(100)

///     let b = IntegerRef(100)

///

///     print(a == a, a == b, separator: ", ")

///     // Prints "true, true"

 

///     class StreetAddress {

///         let number: String

///         let street: String

///         let unit: String?

///

///         init(_ number: String, _ street: String, unit: String? = nil) {

///             self.number = number

///             self.street = street

///             self.unit = unit

///         }

///     }

///     extension StreetAddress: Equatable {

///         static func == (lhs: StreetAddress, rhs: StreetAddress) -> Bool {

///             return

///                 lhs.number == rhs.number &&

///                 lhs.street == rhs.street &&

///                 lhs.unit == rhs.unit

///         }

///     }

 

 

public protocol Comparable : Equatable{

public static func < (lhs: Self, rhs: Self) -> Bool

}

 

------------------越是喧嚣的世界,越需要宁静的思考------------------ 合抱之木,生于毫末;九层之台,起于垒土;千里之行,始于足下。 积土成山,风雨兴焉;积水成渊,蛟龙生焉;积善成德,而神明自得,圣心备焉。故不积跬步,无以至千里;不积小流,无以成江海。骐骥一跃,不能十步;驽马十驾,功在不舍。锲而舍之,朽木不折;锲而不舍,金石可镂。蚓无爪牙之利,筋骨之强,上食埃土,下饮黄泉,用心一也。蟹六跪而二螯,非蛇鳝之穴无可寄托者,用心躁也。