数组扩展以按值删除对象
extension Array { func removeObject<T where T : Equatable>(object: T) { var index = find(self, object) self.removeAtIndex(index) }}
var index = find(self, object)
不可转换为“T”
func removeObject(object: AnyObject)
‘AnyObject’不可转换为‘T’
ABOUTYOU
波斯汪
Smart猫小萌