InputRange for data structure without order?

Andy Valencia dont at spam.me
Wed Jun 4 13:32:42 UTC 2025


On Wednesday, 4 June 2025 at 10:47:24 UTC, Jonathan M Davis wrote:
> Typically, a container will implement opSlice (or opIndex, 
> since confusingly, both can be used in this case) and have it 
> return a range over the container. So, then you can do
>
>     auto range = myContainer[];
>...

Brilliant, thank you.  Now I know what I'm looking for, and I see 
the relevance of all the bits and pieces I'll need.

Andy



More information about the Digitalmars-d-learn mailing list