Returns an iterator that counts starting from one.
number of times that the iterator will fire.
If not specified, it will count forever.
vector of counts.
The counting iterator.
# create an iterator that counts from 1 to 3.
it <- icount(3)
try(nextElem(it)) # expect a StopIteration exception
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.