3 ms·
This article says ”Array can be toll-free bridged to an NSArray”, but is the reverse true, too? https://developer.apple.com/library/content/documentation/Swift
by Someone 9y ago
This article says ”Array can be toll-free bridged to an NSArray”, but is the reverse true, too?
https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/WorkingWithCocoaDataTypes.html https://developer.apple.com/library/content/documentation/Sw... says the two are bridged, but doesn’t mention whether that is toll-free.
If that is toll-free, users of Array, just as users of NSArray, should be aware that indexing in them can be O(log n). See http://ridiculousfish.com/blog/posts/array.html http://ridiculousfish.com/blog/posts/array.html