Making Things Mutable
let num = 5;let num = ref(5); /* put 5 in the box */
Js.log(num^); /* use `^` to look in the box */
num := 3; /* remove 5, put 3 in the box */Last updated
let num = 5;let num = ref(5); /* put 5 in the box */
Js.log(num^); /* use `^` to look in the box */
num := 3; /* remove 5, put 3 in the box */Last updated