RosettaCodeData/Task/Generic-swap/Standard-ML/generic-swap-2.ml
2023-07-01 13:44:08 -04:00

2 lines
65 B
Standard ML

fun swapref (x, y) =
let temp = !x in x := !y; y := temp end