RosettaCodeData/Task/Generic-swap/OCaml/generic-swap-2.ocaml
2023-07-01 13:44:08 -04:00

4 lines
64 B
Text

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