Hi,
What I want to do is simply track a number (Integer, Real, Float, Currency, whatever) mapped to various short strings, maybe 10-1000 max. I'm open to any other solution ideas you may have in FPC!
I usually do o.k. with programming but I'm really struggling to find a "working" (in the sense that I understand it) "hash map", I've tried everything from GHashMap over the 3.0.4 Collections.Generics from GitHub over some other container types, but I cannot seem to find a simple substitute for
std::unordered_mapIf anyone has a simple solution what the equivalent is to
std::unordered_map<std::string, int> or
std::unordered_map<std::string, double> in FPC that'd be awesome, thank you.
Here's an example:
TMapStringReal = specialize THashMap<String, Real>;
generics.dictionaries.inc(1586,37) Error: Incompatible type for arg no. 2: Got "Class Of IExtendedEqualityComparer$1$crcB76584A7", expected "TClass"
Edit: Perhaps at this point, since I'm already using a database, I'll just create another table for this and use it, ha ha...