Ref
t
RESCRIPT
type t = ref<int>increment
RESCRIPT
let increment: ref<int> => unitincrement(intRef) increments the value of the provided reference by 1.
Examples
RESCRIPTlet myRef = ref(4)
Int.Ref.increment(myRef)
myRef.contents == 5
decrement
RESCRIPT
let decrement: ref<int> => unit