* bijective association
@ 2007-08-05 10:40 tmp123
0 siblings, 0 replies; only message in thread
From: tmp123 @ 2007-08-05 10:40 UTC (permalink / raw)
To: caml-list
Hello,
Please, knows someone if there are any module who implements a bijective
association ( 'a <=> 'b)?
functions should be something like (assuming 't is the type of the
association):
add : 't -> 'a -> 'b -> 't
find_a : 't -> 'a -> 'b
find_b : 't -> 'b -> 'a
remove : 't -> 'a -> 't
...
If not, which one could be the best option: use two associative lists,
two maps, two hash tables or others?
Thanks a lot.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-05 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-05 10:40 bijective association tmp123
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox