No NativeHashSet ?

Im I missing something or do we not have NativeHashSet ? If not whats is my best alternative.

Just use a NativeHashMap with an empty struct as the value

1 Like

https://forum.unity.com/search/86362957/?q=NativeHashSet&t=post&o=date&c[node]=147

Is the Idea to

struct Empty {}
NativeHashMap<T, Empty> open;
open.TryGetValue( A, out empty);
if( empty != null) { . // do stuff} ?

What about something like this ,

if (open.Contains(A)){}
else if (open.Contains(B){}
else if (open.Contains(C){}
else if (open.Contains(D){}