Learn R Programming

itertools2 (version 0.1.1)

iter_deepcopy: Performs a deep copy of an iterator

Description

This function is useful when an iterator needs to be copied with a new state environment.

Usage

iter_deepcopy(iterator)

Arguments

iterator
an iterator object that inherits from class 'iter'

Value

a new iterator with its own state