hexga_generational 0.0.11-beta.56

GenVec, ideal for MAS (Multi-Agent System), where each agent can be removed at any time and has references to other agents.
1
2
3
4
5
6
7
8
9
10
11
12
use hexga_generational::prelude::*;

fn main()
{
    let mut set = GenHashSet::new();

    let (id, first_insertion) = set.insert("abc".to_owned());
    assert_eq!(first_insertion, true);
    let (id2, first_insertion2) = set.insert("abc".to_owned());
    assert_eq!(first_insertion2, false);
    assert_eq!(id, id2);
}