This commit is contained in:
Araq 2014-02-09 02:37:49 +01:00
commit e6a50307bb
3 changed files with 35 additions and 29 deletions

View file

@ -22,11 +22,11 @@ proc factory2(a, b: int): iterator (): int =
yield x
inc x
let foo = factory 1, 4
let foo = factory(1, 4)
for f in foo():
echo f
let foo2 = factory2 1,2
let foo2 = factory2(1,2)
for f in foo2(): echo f