3 lines
65 B
OCaml
3 lines
65 B
OCaml
|
|
fun swapref (x, y) =
|
||
|
|
let temp = !x in x := !y; y := temp end
|