Clone an Iterator, making an exact copy that can then be modified separately.
This is a simple wrapper around rlang::env_clone()
. Optionally,
override old initial parameters.
clone(iter, ...)
iter | an |
---|---|
... | optionally override the |
a copy of the Iterator
passed as a parameter
#> [1] 1#> [1] FALSE#> [1] 5it2$initial$n # 5#> [1] 5