Skip to content

Iterators that know their size after start has been called #22467

Open
@davidanthoff

Description

@davidanthoff

Another issue that has come up during the Query.jl design: I have a whole bunch of iterators that know their length after the start method has been called.

Would it be possible to add another return value to iteratorsize that is HasLengthAfterStart(), and if a type returns that it has to implement length(source, state)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    collectionsData structures holding multiple items, e.g. setsiterationInvolves iteration or the iteration protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions