wax-lib.wax
Infer.Cell
A mutable cell carrying a value, backed by union-find: merge unifies two cells so they share one value, and get resolves a cell to that value.
merge
get
wax-lib
wax-lib.conversion
wax-lib.theo
wax-lib.utils
wax-lib.wasm
type 'a t
val make : 'a -> 'a t
val get : 'a t -> 'a
val merge : 'a t -> 'a t -> 'a -> unit
merge a b v unions a and b and sets the shared root to v.
merge a b v
a
b
v
val set : 'a t -> 'a -> unit
set t v overwrites the value at t's root with v.
set t v
t