-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[stdlib] Dictionary/Set enhancements #9030
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
Conversation
A variety of enhancements from SE-154 and SE-165: - Custom Keys and Values collections for Dictionary - Two sequence-based Dictionary initializers - Merging methods for Dictionary - Capacity checking and reserving for Dictionary and Set - Type-specific filter(_:) methods for Dictionary and Set - A mapValues(_:) method for Dictionary - A grouping Dictionary initializer
@swift-ci Please smoke test |
🤔 |
Yeah, I guess that'd be me. Just pull your changes and see what goes wrong with that test? Do you have a backtrace handy? |
I compile in Release mode so I'm not sure this has everything you need, but: https://gist.github.com/natecook1000/31ca8bf769230a6c9da25aa08606c24f |
Oooh, the diagnostics machinery is doing a substitution that |
@natecook1000 , #9106 fixes the crash. You should be good to go once that gets merged. |
Of course, I screwed up #9106. I'll kick off a retest of this PR once I get my act together. |
@swift-ci Please smoke test |
@swift-ci please clean smoke test Linux |
1 similar comment
@swift-ci please clean smoke test Linux |
@natecook1000 could you open a PR with a ChangeLog entry for this? |
Looks like this broke the bots: |
This PR implements the changes approved in SE-154 and SE-165:
Keys
andValues
collections forDictionary
Dictionary
initializersDictionary
Dictionary
andSet
filter(_:)
methods forDictionary
andSet
mapValues(_:)
method forDictionary
Dictionary(grouping:by:)
initializer