Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Nested-function/Lua/nested-function.lua
Normal file
10
Task/Nested-function/Lua/nested-function.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
function makeList (separator)
|
||||
local counter = 0
|
||||
local function makeItem(item)
|
||||
counter = counter + 1
|
||||
return counter .. separator .. item .. "\n"
|
||||
end
|
||||
return makeItem("first") .. makeItem("second") .. makeItem("third")
|
||||
end
|
||||
|
||||
print(makeList(". "))
|
||||
Loading…
Add table
Add a link
Reference in a new issue