Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
21
Task/Nested-function/EasyLang/nested-function.easy
Normal file
21
Task/Nested-function/EasyLang/nested-function.easy
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# The nested functions are subroutines
|
||||
# These don't have parameters or return values
|
||||
#
|
||||
func$ makelist sep$ .
|
||||
counter = 1
|
||||
subr makeitem
|
||||
item$ = counter & sep$ & txt$ & "\n"
|
||||
counter += 1
|
||||
.
|
||||
txt$ = "first"
|
||||
makeitem
|
||||
r$ &= item$
|
||||
txt$ = "second"
|
||||
makeitem
|
||||
r$ &= item$
|
||||
txt$ = "third"
|
||||
makeitem
|
||||
r$ &= item$
|
||||
return r$
|
||||
.
|
||||
print makelist ". "
|
||||
Loading…
Add table
Add a link
Reference in a new issue