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
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){}