try_nextElem: Calls iterators::nextElem(). If error, returns default value.

Description Usage Arguments Value

View source: R/utilities.r

Description

Returns the next element of object. In the case a StopIteration exception is thrown, the default value is returned instead.

Usage

1
try_nextElem(object, default = NA, silent = TRUE)

Arguments

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

Value

the next element of object


itertools2 documentation built on May 30, 2017, 7:17 a.m.