# assoc [docs.rs](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); ```