Is there similar component for Delphi like dictionary of Python?
I'm now using TStringList to map string/object pairs, but I'd like more general approach and maybe more powerful (TStringList has binary search when it is sorted).
Solutions for pre-D2009 are also welcome.
There is in Delphi 2009. A whole new containers unit has been added, and a Dictionary class is one of the classes available.
Couple this with Generics, and you have a very powerful set of classes.
There is a THashedStringList class (subclassed from TStringList) "hidden" in IniFiles.pas that can significantly speed up searching in a string list based dictionary.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With