val fromListUnique :
('key, 'identity) Comparator.s
-> ('key * 'value) list
-> (('key, 'value, 'identity) t, 'key) Result.t
This function should work similarly to fromList but will return an Ok if all of the keys are distinct and an Error containing the duplicated key if it is encountered.
Naming suggestions would be helpful.
This function should work similarly to
fromListbut will return anOkif all of the keys are distinct and anErrorcontaining the duplicated key if it is encountered.Naming suggestions would be helpful.