Ricks Film Restoration
Member
Maps are ideal ways to store data. Retrieving an entry in a Map by using a search phrase is much, much faster than when searching from top to bottom in a long list.
E.g. in a Map with 100.000 entries the Map.contains(Key) function returns results in less than 2 milliseconds!
I have a large dataset that is linked (organize according to) to the index of my Map object (in a huge random access file).
What I need is a way to determine the index of any key/value pair in the Map. There is no Map.GetIndex(Key) function, mainly Map.GetKeyAt(index) and Map.GetValueAt(index).
Who has (or can create) this function?
It would be silly to have to use a loop using: For i = 0 to Map.size - Map.GetKeyAt(index) - next to determine the index of a specific Key/value pair.
PS: I know that in the past using the index functions of a Map has been discouraged, but so far I have always found that items that are transferred from a list to a map land there in the same order and same index as in the list.
E.g. in a Map with 100.000 entries the Map.contains(Key) function returns results in less than 2 milliseconds!
I have a large dataset that is linked (organize according to) to the index of my Map object (in a huge random access file).
What I need is a way to determine the index of any key/value pair in the Map. There is no Map.GetIndex(Key) function, mainly Map.GetKeyAt(index) and Map.GetValueAt(index).
Who has (or can create) this function?
It would be silly to have to use a loop using: For i = 0 to Map.size - Map.GetKeyAt(index) - next to determine the index of a specific Key/value pair.
PS: I know that in the past using the index functions of a Map has been discouraged, but so far I have always found that items that are transferred from a list to a map land there in the same order and same index as in the list.