write once type?
sighoya
sighoya at gmail.com
Fri Apr 30 13:24:14 UTC 2021
On Friday, 30 April 2021 at 01:30:54 UTC, Steven Schveighoffer
wrote:
> In my case, for value of a certain type in the loop, I was
> storing a specific field from the first one I found, and then
> verifying that all the other values of that type (not exactly
> the same type, but similar) had the same value for that field,
> otherwise it was an error.
>
> I could have done it in 2 loops, but it's wasteful.
I have problems to grok exactly what you're talking about, can
you provide some neat and small example for this?
More information about the Digitalmars-d-learn
mailing list