InputRange for data structure without order?
Andy Valencia
dont at spam.me
Tue Jun 3 23:54:20 UTC 2025
On Tuesday, 3 June 2025 at 20:51:05 UTC, Ali Çehreli wrote:
> front() does not imply an order. It will work as long as you
> can provide the elements in a sequence. The built-in
> associative array feature is an example:
Ok, but now the data structure is told to popFront(). I
completely see how this would work for, say, slices. But when
hashed, arbitrarily large, and unordered? Not so much.
(I know how to code this walker using generators, but that does
not play with the Range oriented API's so far as I can tell.)
Thanks,
Andy
More information about the Digitalmars-d-learn
mailing list