How to write a function that allow any objects but must be Printable
and Equatable
array of objects in Swift?
class func withItems(items: [AnyObject]){
}
- I need items to be
Printable
andEquatable
- I need to declare that items array as attribute of my class
Thanks