Seems a good task for Iterator.
Why? That just transforms the OP from "How do I do this?" to "How do I do this with an iterator?", and doesn't offer a solution.
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re^2: Count in intervals
by QM
in thread Count in intervals
by rkk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |