Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
10
Task/Generic-swap/PascalABC.NET/generic-swap.pas
Normal file
10
Task/Generic-swap/PascalABC.NET/generic-swap.pas
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
procedure Swap<T> (var a,b: T) := (a,b) := (b,a);
|
||||
|
||||
begin
|
||||
var (i,j) := (1,2);
|
||||
Swap(i,j);
|
||||
Println(i,j);
|
||||
var (s1,s2) := ('PascalABC.NET','Hello');
|
||||
Swap(s1,s2);
|
||||
Println(s1,s2);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue