New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSOrderedSet: Implement more functionality #2089
Conversation
@swift-ci test |
Note: Need to add some tests. |
Can you use |
I looked at how |
@swift-ci test linux |
- Add copy() and mutableCopy(). - Add .set and .array to return immumtable views of the current contents. - Implement index(of:inSortedRange:options:usingComparator cmp:) by calling NSArray()'s version on ._orderedStorage. - Implement description(withLocale:), description(withLocale:indent:), .description and .customMirror. - NSCoding still needs to be implemented.
6e9d46e
to
273fa4f
Compare
@swift-ci test linux |
1 similar comment
@swift-ci test linux |
@swift-ci please test |
The idea here is that we're hitting a compiler bug around casting, which is often problematic while developing s-c-f because s-c-f is part of the implementation of casting itself (and also has to coexist with the bridging setup on Darwin.) The guideline going forward is to avoid bridging casts and use |
@swift-ci test |
@swift-ci test |
Add copy() and mutableCopy().
Add .set and .array to return immumtable views of the current
contents.
Implement index(of:inSortedRange:options:usingComparator cmp:)
by calling NSArray()'s version on ._orderedStorage.
Implement description(withLocale:), description(withLocale:indent:),
.description and .customMirror.
NSCoding still needs to be implemented.