Open
Description
As originally posted on Gitter by @microgravitas:
Hi y'all! Can anyone point me to an example of how to implement an Python iterator which does not copy the whole underlying datastructure? All examples I could find used .clone(), something I'd like to avoid---if possible.
I've actually noticed this too about our iterator examples - it would be nice if we could find a way to make the .clone()
unnecessary!