I\'m trying to build an extension that adds some of the convenience functionality of NSArray/NSMutableArray to the Swift Array class, and I\'m trying to add this function:
Actually there is no need to implement indexOfObject:; there is a global function find(array, element) already.
indexOfObject:
find(array, element)