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

4 lines
52 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
func swap(Ref a, Ref b) {
[*a, *b] » (b, a);
}