RosettaCodeData/Task/Generic-swap/Delphi/generic-swap-1.pas
2024-10-16 18:07:41 -07:00

8 lines
93 B
ObjectPascal

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