-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Labels
waiting-for-stdChanges waiting for stabilization in the standard library, so we can match the API.Changes waiting for stabilization in the standard library, so we can match the API.
Description
The standard library hashmap and btree map recently got a nightly-only try_insert
operation (here's the tracking issue), which makes it very convenient to insert something into a map, panicking in the case that it's already there:
the_map.try_insert(key, value).unwrap();
It would be nice to also have this for IndexMap
.
stepancheg
Metadata
Metadata
Assignees
Labels
waiting-for-stdChanges waiting for stabilization in the standard library, so we can match the API.Changes waiting for stabilization in the standard library, so we can match the API.