Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protocol CusotmEquatable {
- func isEqual(to rhs: CusotmEquatable) -> Bool
- }
- extension CusotmEquatable where Self: Equatable {
- func isEqual(to rhs: CusotmEquatable) -> Bool {
- guard let rhs = rhs as? Self else {
- return false
- }
- return self == rhs
- }
- }
Add Comment
Please, Sign In to add comment