assoc

docs.rs

Treat vectors like association lists.

Examples

```rust use assoc::AssocListExt;

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); ```