Anonymous user
Closures/Value capture: Difference between revisions
→{{header|Nim}}
Line 936:
for i in 0..9:
funcs.add(proc (): int = x * x))()
for i in 0..8:
|
Line 936:
for i in 0..9:
funcs.add(proc (): int = x * x))()
for i in 0..8:
|