powered by
hasNext
hasNext(obj, ...) "hasNext"(obj, ...)
it <- ihasNext(iter(c('a', 'b', 'c'))) while (hasNext(it)) print(nextElem(it))
Run the code above in your browser using DataLab