Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
// Declare the callback function
|
||||
procedure callback(const AInt:Integer);
|
||||
begin
|
||||
WriteLn(AInt);
|
||||
end;
|
||||
|
||||
const
|
||||
// Declare a static array
|
||||
myArray:Array[0..4] of Integer=(1,4,6,8,7);
|
||||
var
|
||||
// Declare interator variable
|
||||
i:Integer;
|
||||
begin
|
||||
// Iterate the array and apply callback
|
||||
for i:=0 to length(myArray)-1 do
|
||||
callback(myArray[i]);
|
||||
end.
|
||||
Loading…
Add table
Add a link
Reference in a new issue