RosettaCodeData/Task/Generic-swap/OCaml/generic-swap-2.ocaml
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

4 lines
64 B
Text

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