Skip to content

Iterator examples without Clone #1085

Open
@davidhewitt

Description

@davidhewitt

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!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions