package unionFind

  1. Overview
  2. Docs

This module offers an implementation of STORE based on immutable integer maps. The stores thus obtained are persistent.

module Make (IntMap : sig ... end) : sig ... end

The easiest way of instantiating the above functor is with integer maps found in the standard library. This is done here.

type 'a store
val new_store : unit -> 'a store
type 'a rref
val make : 'a store -> 'a -> 'a store * 'a rref
val get : 'a store -> 'a rref -> 'a store * 'a
val set : 'a store -> 'a rref -> 'a -> 'a store
val eq : 'a store -> 'a rref -> 'a rref -> 'a store * bool
OCaml

Innovation. Community. Security.