I am using a hash table as a multi-mapping and I want to remove any of the previous bindings. The Hashtbl.remove just removes the current binding. I am thinking of something like remove hash x y which removes the binding of y to x. If there are more than one bindings x y it should remove one of them. I have some working code for this but it is too complicated and slow (includes for loops etc.)
I want it to work like this :
Hashtbl.find_all hash 1 ;; returns [1;2;3;3;4]
remove hash 1 3 ;;
Hashtbl.find_all hash 1 ;; returns [1;2;3;4]