Skip to content

Abstract iterator type? #23429

@rofinn

Description

@rofinn

Would there be any interest in adding an AbstractIterator{T} type in base? There seems to be a common pattern of defining an iterator type anyways (e.g., KeyIterator, ValueIterator) and I think it would help with a lot of design issues within the package ecosystem if we could just accept an AbstractIterator{T} where T is some common eltype we want to support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    iterationInvolves iteration or the iteration protocolspeculativeWhether the change will be implemented is speculative

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions