Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
13
Task/Nested-function/Julia/nested-function.jl
Normal file
13
Task/Nested-function/Julia/nested-function.jl
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