RosettaCodeData/Task/Generic-swap/Seed7/generic-swap-1.seed7
2023-07-01 13:44:08 -04:00

13 lines
290 B
Text

const proc: generate_swap (in type: aType) is func
begin
const proc: swap (inout aType: left, inout aType: right) is func
local
var aType: temp is aType.value;
begin
temp := left;
left := right;
right := temp;
end func;
end func;