search near in Delphi Dictionary or other list
Posted on 2011-10-19
I need to maintain a list of key-values, where the key is a date and the value a double. Now, if I search for a date which is not in the list, I need the value of the first next date available in the list. I am trying to use a dictionary, but i don't mind. I need a list in memory and I'm looking for a simple way to do that.
And I know looping through the list, that is an option, but what I'm looking for is like TTable.FindNearest, but than in memory ...