10 lines
265 B
Text
10 lines
265 B
Text
makeList = function(sep)
|
|
counter = 0
|
|
makeItem = function(item)
|
|
outer.counter = counter + 1
|
|
return counter + sep + item
|
|
end function
|
|
return [makeItem("first"), makeItem("second"), makeItem("third")]
|
|
end function
|
|
|
|
print makeList(". ")
|