RosettaCodeData/Task/Closures-Value-capture/Ring/closures-value-capture.ring

10 lines
121 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
x = funcs(7)
see x + nl
func funcs n
fn = list(n)
for i = 1 to n
fn[i] =i*i
next
return fn