assoc

docs.rs

Treat vectors like associative arrays.

Examples

```rust use assoc::AssocExt;

let mut map = vec![("a", 1), ("b", 2)]; map.entry("c").orinsert(3); asserteq!(map.get(&"c"), Some(&3)); asserteq!(map.entry("c").orinsert(4), &3); ```