RosettaCodeData/Task/Generic-swap/OCaml/generic-swap-2.ml
2024-10-16 18:07:41 -07:00

4 lines
64 B
Standard ML

let swapref x y =
let temp = !x in
x := !y;
y := temp