assoc 0.1.3

Treat vectors like associative arrays
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# assoc

[<img alt="docs.rs" src="https://docs.rs/assoc/badge.svg">](https://docs.rs/assoc)

Treat vectors like [associative arrays](https://en.wikipedia.org/wiki/Associative_array).

## Examples

```rust
use assoc::AssocExt;

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