This is the Reference Assignment operator.

val ( := ) : 'a ref -> 'a -> unit

Given a reference rr, sets the contents of rr to the given value and returns unit:

let x = ref 1 in
  x := 2;
  !x ;;

- : int = 2
Other procedural operators: