[mercury-users] Hashtable modes (foldl)

Robert Colvin robert at itee.uq.edu.au
Tue Apr 11 11:08:40 AEST 2006


Hi,

Is it possible to use hash_tables as the accumulator to foldl/4?  

The mode listing for the first (pred) parameter to foldl/4 doesn't
list "pred(in, di, out)", which appears to be what is required
(hash_table_di = di(hash_table), hash_table_uo = out(hash_table)).

Perhaps there is another data structure I should be using instead?
(It looks like I could get version_hash_table to work, but I won't
need to access previous versions)

Thanks,
Rob
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list