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
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.