Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
14
Task/Nested-function/Pluto/nested-function.pluto
Normal file
14
Task/Nested-function/Pluto/nested-function.pluto
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
local function make_list(sep)
|
||||
local counter = 0
|
||||
local function make_item(name)
|
||||
counter += 1
|
||||
return $"{counter}{sep}{name}"
|
||||
end
|
||||
local items = {}
|
||||
for {"first", "second", "third"} as name do
|
||||
items:insert(make_item(name))
|
||||
end
|
||||
print(items:concat("\n"))
|
||||
end
|
||||
|
||||
make_list(". ")
|
||||
Loading…
Add table
Add a link
Reference in a new issue