Re: Iterating through a HashTable

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 09/24/04


Date: Fri, 24 Sep 2004 15:18:04 +0200

Ken,

I have the idea that you are not iterating through the keys of the
hasthtable but throught the values.

In my idea is that not where the hashtable is not made for, in that case by
instance the datatable does a much better job as collection because you have
much more methods to get the values from the objects in the datarow and
remove when needed those rows.

However maybe I see something wrong?

Cor



Relevant Pages

  • Re: Why doesnt CMap have a copy constructor?
    ... there isn't anything to stop you from iterating a map and retrieving all ... the keys. ...
    (microsoft.public.vc.mfc)
  • Re: complex data structure
    ... For some reason my final value for the keys is being repeated 24 times so I ... am guessing I have an issue with how I am iterating over the hashes. ...
    (perl.beginners)
  • Re: complex data structure
    ... For some reason my final value for the keys is being repeated 24 times so I ... The problem here is that you're iterating with $hehCount but accessing the ... %CELL here. ... Shlomi Fish http://www.shlomifish.org/ ...
    (perl.beginners)
  • Re: Partial index hash search?
    ... There's really no way to avoid iterating over the keys in the hash. ... array of the keys that contain "Hello". ... It looks like you replied to a posting for Ruby Quiz #156. ...
    (comp.lang.ruby)
  • Re: accessing keys in dict
    ... keys lazily, only when needed. ... Iterating over the dict itself is the same ... A six second difference on a million iterations of the loop is probably ... But if your dict is very big, ...
    (comp.lang.python)