4 ms·
I am unsure how your arrays link is relevant?
by saagarjha 6y ago
I am unsure how your arrays link is relevant?
- Someone 6y agoYou’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...)