RosettaCodeData/Task/Generic-swap/Sidef/generic-swap-1.sidef

6 lines
73 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
func swap(Ref a, Ref b) {
var tmp = *a;
*a = *b;
*b = tmp;
}