ihasNext {itertools} | R Documentation |
ihasNext
is a generic function that indicates if the iterator
has another element.
ihasNext(iterable)
iterable |
an iterable object, which could be an iterator. |
An ihasNext
iterator that wraps the specified iterator and supports
the hasNext
method.
it <- ihasNext(c('a', 'b', 'c'))
while (hasNext(it))
print(nextElem(it))