Created
September 24, 2015 20:20
-
-
Save ivangodfather/3795d5d08a1b51a4f556 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Product: Equatable { | |
| var id: Int? | |
| } | |
| func ==(lhs: Product, rhs: Product) -> Bool { | |
| return lhs.id == rhs.id | |
| } | |
| var myProducts = [//Array with products with some products repetaed ] | |
| var uniqueIdProducts = ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment