Lazy pregen

This commit is contained in:
DanMB
2022-07-17 08:52:56 -07:00
parent b82edfe688
commit a32de58c8b
3 changed files with 190 additions and 0 deletions

View File

@@ -75,4 +75,14 @@ public class Spiraler {
z += dz;
i++;
}
public int count() {
int c = 0;
while(hasNext()) {
next();
c++;
}
return c;
}
}