~= operator in Swift

后端 未结 3 1966
悲哀的现实
悲哀的现实 2020-12-04 14:10

I recently downloaded the Advanced NSOperations sample app from Apple and found this code...

// Operators to use in the switch statement.
pr         


        
3条回答
  •  攒了一身酷
    2020-12-04 14:57

    You can look into Define Swift

    func ~=(pattern: I, value: I.Bound) -> Bool
    func ~=(lhs: _OptionalNilComparisonType, rhs: T?) -> Bool
    func ~=(a: T, b: T) -> Bool
    func ~=(pattern: Range, value: I) -> Bool
    

提交回复
热议问题