Are you sure that you are doing it properly at all?

If your keys are ints, then you may use a plain array to store the value 
objects, you may not need the hash table.
    
    
    if not(item in uniqueObjects):
    

This should be very slow, as in op does a linear search each time in whole seq.

And finally, a hasValue() would have to do a linear search also, which is very 
slow of course.

Maybe you can tell us what you want to archive? There are many ways -- maybe 
see countTable or this thread: 
[https://forum.nim-lang.org/t/2611#16168](https://forum.nim-lang.org/t/2611#16168)

Reply via email to