With an array: How do I do indexOfObject or a proper containsObject?
indexOfObject
containsObject
I mean I know I could just bridge the Array to NSArray an
NSArray
One other option is to use filter:
haystack.filter({$0 == needle}).count > 0
This checks to see if array haystack contains object needle.