Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -1,7 +1,7 @@
|
|||
var .abc = [1, 2, 3]
|
||||
var .def = [5, 6, 7]
|
||||
var abc = [1, 2, 3]
|
||||
var def = [5, 6, 7]
|
||||
|
||||
.abc[3], .def[3] = .def[3], .abc[3]
|
||||
abc[3], def[3] = def[3], abc[3]
|
||||
|
||||
writeln .abc
|
||||
writeln .def
|
||||
writeln abc
|
||||
writeln def
|
||||
|
|
|
|||
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