use generational_vector::GenerationalVector;
fn main() {
let mut v = GenerationalVector::default();
let a = v.push("first");
let b = v.push("second");
assert_eq!(v.get(&a).unwrap(), &"first");
assert_eq!(v.get(&b).unwrap(), &"second");
v.remove(&b);
assert!(v.get(&b).is_none());
let c = v.push("third");
assert_eq!(v.get(&c).unwrap(), &"third");
assert_eq!(v.get(&b), None);
for value in v {
println!("{}", value);
}
}