Skip to content

Clean Up Some Data Structures a Bit #722

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

Merged
merged 3 commits into from
Jun 22, 2021
Merged

Clean Up Some Data Structures a Bit #722

merged 3 commits into from
Jun 22, 2021

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jun 22, 2021

Shuffle the docs around on some decls, drop some unused decls, and prettify the interface to BidirectionalMap with some new docs.

CodaFi added 3 commits June 21, 2021 19:19
Minimize the interface, split and document the updateValue entrypoints, and redefine them in terms of their subscript counterparts.
@CodaFi CodaFi requested a review from artemcm June 22, 2021 02:22
@CodaFi
Copy link
Contributor Author

CodaFi commented Jun 22, 2021

@swift-ci test

@artemcm
Copy link
Contributor

artemcm commented Jun 22, 2021

@swift-ci test

@CodaFi CodaFi merged commit af5284c into swiftlang:main Jun 22, 2021
@CodaFi CodaFi deleted the bipass branch June 22, 2021 16:16
public mutating func updateValue(_ newValue: T2, forKey key: T1) -> T2? {
let oldValue = map1.updateValue(newValue, forKey: key)
_ = oldValue.map {map2.removeValue(forKey: $0)}
Copy link
Contributor

@davidungar davidungar Jun 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, never mind.

Copy link
Contributor

@davidungar davidungar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants