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

6 lines
73 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
func swap(Ref a, Ref b) {
var tmp = *a;
*a = *b;
*b = tmp;
}