I have a class:
class Product {
val productID = ...
val weight = ...
val size = ....
.....[more fields]....
}
I have a List[Product] which contains the same product multiple times. How can I convert the list into a Set[Product] using productID as the 'unique' value so that each Product is only included once?
thanks