try_nextElem {itertools2} | R Documentation |
Returns the next element of object
. In the case a StopIteration
exception is thrown, the default
value is returned instead.
try_nextElem(object, default = NA, silent = TRUE)
object |
an iterable object |
default |
default value returned if a StopIteration exception is thrown |
silent |
Should any errors be suppressed without explicitly notifying the user? Default. Yes |
the next element of object