eliminate unnecessary indirection in ColorStack iterator
This commit is contained in:
parent
e5e2f30045
commit
59fc6b961b
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*.exe
|
||||
*.exe
|
||||
profile_results.txt
|
@ -60,7 +60,7 @@ proc len*(s: ColorStack): int8 =
|
||||
|
||||
iterator items*(s: ColorStack): Color =
|
||||
for i in 0 .. s.last:
|
||||
yield Color(s[i])
|
||||
yield Color(s.pieces[i])
|
||||
|
||||
|
||||
iterator asInt*(s: ColorStack): int8 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user