package unionFind

  1. Overview
  2. Docs

This module offers an implementation of STORE based on mutable references.

type 'a store = unit
val new_store : unit -> 'a store
type 'a rref = 'a ref
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.