Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Nested-function/ALGOL-68/nested-function.alg
Normal file
12
Task/Nested-function/ALGOL-68/nested-function.alg
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
PROC make list = ( STRING separator )STRING:
|
||||
BEGIN
|
||||
INT counter := 0;
|
||||
PROC make item = ( STRING item )STRING:
|
||||
BEGIN
|
||||
counter +:= 1;
|
||||
whole( counter, 0 ) + separator + item + REPR 10
|
||||
END; # make item #
|
||||
make item( "first" ) + make item( "second" ) + make item( "third" )
|
||||
END; # make list #
|
||||
|
||||
print( ( make list( ". " ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue