Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Nested-function/Julia/nested-function.julia
Normal file
13
Task/Nested-function/Julia/nested-function.julia
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
function makelist(sep::String)
|
||||
cnt = 1
|
||||
|
||||
function makeitem(item::String)
|
||||
rst = string(cnt, sep, item, '\n')
|
||||
cnt += 1
|
||||
return rst
|
||||
end
|
||||
|
||||
return makeitem("first") * makeitem("second") * makeitem("third")
|
||||
end
|
||||
|
||||
print(makelist(". "))
|
||||
Loading…
Add table
Add a link
Reference in a new issue