Data.HashTable and duplicate keys
maeder at tzi.de
Tue Sep 28 07:41:25 EDT 2004
> On 28 September 2004 05:43, Ben Rudiak-Gould wrote:
>> Prelude> hash <- Data.HashTable.fromList id [(1,'a'),(1,'b')]
>> Prelude> Data.HashTable.lookup hash 1 >>= print
>> Just 'b'
>>This is clearly wrong, and makes me think that Data.HashTable's
This looks ok to me. If (1,'b') is put in last, lookup should yield this
result. However, toList should not produce a list containing identical keys.
More information about the Libraries