You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicextensionSequence{@inlinablefunc keyed<Key:Hashable>(
by key:(Element)throws->Key)rethrows->[KeyValuePairs<Key,Element>.Element]{trymap{(trykey($0), $0)}}}
The text was updated successfully, but these errors were encountered:
With dictionaries, we have a
uniquingKeysWith
parameter. It would be helpful to have similar foruniqued
.This came up in a Stack Overflow Q/A. The following works but relies on arrays—we should have something better in
Algorithms
.The text was updated successfully, but these errors were encountered: