Skip to content
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

Add append methods #337

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Add append methods #337

merged 3 commits into from
Aug 13, 2024

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Aug 13, 2024

These are like a mix of BTreeMap::append / BTreeSet::append and Vec::append, updating existing entries or else appending new entries, while keeping the original order.

pub fn IndexMap<K, V, S>::append<S2>(&mut self, other: &mut IndexMap<K, V, S2>)
pub fn IndexSet<T, S>::append<S2>(&mut self, other: &mut IndexSet<T, S2>)

Closes #336.

@cuviper cuviper enabled auto-merge August 13, 2024 20:24
@cuviper cuviper added this pull request to the merge queue Aug 13, 2024
Merged via the queue into indexmap-rs:master with commit b66bbfe Aug 13, 2024
16 checks passed
@cuviper cuviper deleted the append branch August 30, 2024 17:43
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.

Feature request: join two or more IndexMap
1 participant