made closure iterators tests green, updated docs
This commit is contained in:
parent
2162a71c93
commit
307a6095fa
10 changed files with 42 additions and 35 deletions
|
|
@ -9,7 +9,7 @@ proc univ(x, y: int): State = Tree
|
|||
|
||||
var w, h = 30
|
||||
|
||||
iterator fields(a = (0,0), b = (h-1,w-1)) =
|
||||
iterator fields(a = (0,0), b = (h-1,w-1)): auto =
|
||||
for y in max(a[0], 0) .. min(b[0], h-1):
|
||||
for x in max(a[1], 0) .. min(b[1], w-1):
|
||||
yield (y,x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue