1 2 3 4 5 6 7 8
iterator iter*(): int {.closure.} = yield 3 var x = iter doAssert x() == 3 let fIt = iterator(): int = yield 70 doAssert fIt() == 70