Dictionary (from Python) for Delphi?

Is there a similar component for Delphi like a Python dictionary?

Now I use TStringList to match pairs of strings / objects, but I need a more general approach and possibly more powerful (TStringList has a binary search when sorting it).

Solutions for pre-D2009 are also welcome.

+4
source share
5 answers

IniFiles.pas has a THashedStringList class (subclassed from TStringList) that can significantly speed up the search in a string list dictionary.

+4
source

Delphi 2009 added a new container block, and the Dictionary class is one of the available classes.

Combine this with Generics and you have a very powerful set of classes.

+10
source

I have not tried this myself, but what about this Delphi Collections package? (Thanks, Google).

+2
source

If you are looking for some Hashtable implementations, check out the Hashtable implementations.

+2
source

I have always used DeCAL . It includes both sequences, maps, and hash tables.

+1
source

All Articles