RosettaCodeData/Task/Generic-swap/Seed7/generic-swap-1.seed7
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07: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;