Made progress with enriching the module's interface and done some
basic testing.
https://github.com/c-cube/ocaml-containers/compare/master...orbifx:bimap
It's missing sequence conversions, which I need to read about before I
can implement them.
Anything else?
--
SP
Le Sat, 24 Feb 2018, Drup wrote:
> Why not call this "Bijection" or "BijMap" ? BiMap simply implies two maps.
> This a bit more specific.
It makes sense! `Bijection` is about the intent, `BiMap` ties to an
implementation. However if we change the name we still have to convey
that it's a
Why not call this "Bijection" or "BijMap" ? BiMap simply implies two
maps. This a bit more specific.
Le 23/02/2018 à 01:37, SP a écrit :
I've started working on a BiMap, a map where (key, value) is also
(value, key) in a one-to-one relationship.
>Shall I revert the order for this module, or has the "new convention"
>have to be upheld?
Put the map last, as is convenient for piping.
--
Simon
___
Containers-users mailing list
Containers-users@lists.ocaml.org
I've started working on a BiMap, a map where (key, value) is also
(value, key) in a one-to-one relationship.
https://github.com/c-cube/ocaml-containers/compare/master...orbifx:bimap
As I'm writing this I have written `empty`, `add`, `find_left` and
`find_right`.
The idea is that when adding a