Ref
decrement
RES
let decrement: ref<int> => unitdecrement(intRef) decrements the value of the provided reference by 1.
Examples
RESlet myRef = ref(4)
Int.Ref.decrement(myRef)
myRef.contents == 3
increment
RES
let increment: ref<int> => unitincrement(intRef) increments the value of the provided reference by 1.
Examples
RESlet myRef = ref(4)
Int.Ref.increment(myRef)
myRef.contents == 5
t
RES
type t = ref<int>