is.iteror
R/2_iteror.R
is.iteror.Rd
is.iteror indicates if an object is an iteror.
is.iteror(x)
any object.
TRUE if the object has class iteror.
iteror
it <- iteror(1:3) stopifnot(is.iteror(it)) repeat { print(nextOr(it, break)) } #> [1] 1 #> [1] 2 #> [1] 3