RosettaCodeData/Task/Nested-function/Ring/nested-function.ring

14 lines
324 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
# Project : Nested function
makeList(". ")
func makeitem(sep, counter, text)
see "" + counter + sep + text + nl
func makelist(sep)
a = ["first", "second", "third"]
counter = 0
while counter < 3
counter = counter + 1
makeitem(sep, counter, a[counter])
end