InputRange for data structure without order?
monkyyy
crazymonkyyy at gmail.com
Wed Jun 4 20:51:38 UTC 2025
On Wednesday, 4 June 2025 at 20:34:30 UTC, Ali Çehreli wrote:
> generators
>
> My mental model of slices differ
> > I
> > think the some of the rng primitives also just mutate.
> Nullable is a
> > range for some God-Forsaken reason, it would have to mutate
> data.
>
> I wasn't aware of that. I wonder whether someone thought it
> would improve generality? But that topic is beside the point
> here, which was the separation of containers and ranges.
>
> Ali
Nullable is a 1 or 0 length container which did not need to have
a [] called on it; and I dont really want to hear you call it a
generator.
Your already making an exception for the "ranges are views of
data"; its just not surviving contact with all counter examples.
More information about the Digitalmars-d-learn
mailing list