I am looking for a data structure that is a bit like Data.HashTable , but it is not burdened with the IO monad. At the moment I am using [(key, val)]. I would like the structure to be O (log n), where n is the number of key value pairs.
A structure is created infrequently compared to how often it needs to be read, and when it is built, I have all the key pairs available at the same time. String keys, if that matters.
It would be nice to know how much to abandon [(key, val)].
source share