Skip to contents

is.iteror indicates if an object is an iteror.

Usage

is.iteror(x)

Arguments

x

any object.

Value

TRUE if the object has class iteror.

Examples


it <- iteror(1:3)
stopifnot(is.iteror(it))
repeat {
  print(nextOr(it, break))
}
#> [1] 1
#> [1] 2
#> [1] 3