package vocal

  1. Overview
  2. Docs
type 'a elem
val make : 'a -> 'a elem

note: in functions find, eq, and get, 'modifies' accounts for path compression

val find : 'a elem -> 'a elem
val eq : 'a elem -> 'a elem -> bool
val get : 'a elem -> 'a
val set : 'a elem -> 'a -> unit
val union : 'a elem -> 'a elem -> unit
OCaml

Innovation. Community. Security.