module Ref:sig..end
swap t1 t2 swaps the values in t1 and t2.type'at ='a Pervasives.ref= {
|
mutable contents : |
include Binable.S1
include Sexpable.S1
include Container.S1
val create : 'a -> 'a tval (!) : 'a t -> 'aval (:=) : 'a t -> 'a -> unitval swap : 'a t -> 'a t -> unitswap t1 t2 swaps the values in t1 and t2.val replace : 'a t -> ('a -> 'a) -> unitreplace t f is t := f !t