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

Description Usage Arguments Value

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 2, 2019, 3:37 p.m.