Hash maps
There are 4 general purpose hash map implementations:
inkHashMap:Uint64 -> ref<IScriptable>inkWeakHashMap:Uint64 -> wref<IScriptable>inkIntHashMap:Uint64 -> Int32inkStringMap:String -> Uint64
For inkHashMap and inkWeakHashMap, all custom classes extend IScriptable, therefore they can be used as values in these hash maps.
let map = new inkHashMap();
hashMap.Insert(TDBID.ToNumber(t"key1"), MyClass.Create(1));
hashMap.Insert(TDBID.ToNumber(t"key2"), MyClass.Create(2));
let value: ref<MyClass> = map.Get(TDBID.ToNumber(t"key1")) as MyClass;Last updated