Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
13
Task/Generic-swap/Seed7/generic-swap-1.seed7
Normal file
13
Task/Generic-swap/Seed7/generic-swap-1.seed7
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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;
|
||||
2
Task/Generic-swap/Seed7/generic-swap-2.seed7
Normal file
2
Task/Generic-swap/Seed7/generic-swap-2.seed7
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
generate_swap(integer);
|
||||
generate_swap(string);
|
||||
1
Task/Generic-swap/Seed7/generic-swap-3.seed7
Normal file
1
Task/Generic-swap/Seed7/generic-swap-3.seed7
Normal file
|
|
@ -0,0 +1 @@
|
|||
swap(a, b);
|
||||
Loading…
Add table
Add a link
Reference in a new issue