`import sugar var test: seq[proc ()] for i in 0..5: capture i: test.add( proc 
() = echo i ) test[3]() `

Run

Reply via email to