powered by
icount(count) icountn(vn)
# create an iterator that counts from 1 to 3. it <- icount(3) nextElem(it) nextElem(it) nextElem(it) try(nextElem(it)) # expect a StopIteration exception
Run the code above in your browser using DataLab