
Swift and Unicode API Design with Rob Napier
Software Unscripted
00:00
Is There a Better Way to Fix a Performance Problem in Swift?
The most common collection is an array and the array is in fact a weird collection in Swift. Arrays are almost unique in the whole system that they allow you to use an integer. They're almost always subscriptable by a bespoke index that is her collection sets have a set index dictionary, so that dictionary index. It is very, very unusual for a string and strings again, strings have a string index. Everything has its own magical private index that can be used to that it returns to you like where is the first time this is found? And then you can take that index and hand it back to the collection to find it again. Most collections would return an optional. Like if you
Transcript
Play full episode