is.iteror {iterors} | R Documentation |
is.iteror
indicates if an object is an iteror.is.iteror
indicates if an object is an iteror.
is.iteror(x)
x |
any object. |
TRUE if the object has class iteror
.
it <- iteror(1:3)
stopifnot(is.iteror(it))
repeat {
print(nextOr(it, break))
}