3 ms·
You’re right. I had forgotten that the bridging between Swift Arrays and NSArray isn’t purely 1:1 (https://developer.apple.com/documentation/swift/array#2846730
by Someone 6y ago
You’re right. I had forgotten that the bridging between Swift Arrays and NSArray isn’t purely 1:1 (https://developer.apple.com/documentation/swift/array#2846730 https://developer.apple.com/documentation/swift/array#284673...). (IIRC, it used to be)
Arrays still are not guaranteed to be contiguous in memory, though. If you want that, there’s ContiguousArray (https://developer.apple.com/documentation/swift/contiguousarray https://developer.apple.com/documentation/swift/contiguousar...)