RosettaCodeData/Task/Generic-swap/Delphi/generic-swap-1.delphi

9 lines
93 B
Plaintext

procedure Swap_T(var a, b: T);
var
temp: T;
begin
temp := a;
a := b;
b := temp;
end;