Module Unionfind
An imperative implementation of partitions via Union-Find
module type PartitionSig = sig ... endmodule type SetS = sig ... endMinimal interface for sets, subtype of stdlib's Set.
module type MapS = sig ... endMinimal interface for maps, subtype of stdlib's Map.