Linked list as a bidirectional range? I have some questions...
H. S. Teoh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Aug 11 13:35:52 PDT 2014
On Mon, Aug 11, 2014 at 08:22:11PM +0000, Gary Willoughby via Digitalmars-d-learn wrote:
[...]
> That..is..awesome! and much more simpler than i thought. I get it now,
> thanks. Is this pattern repeated in phobos?
This is essentially what byKey and byValue of the built-in associative
arrays do. :-)
IIRC, std.container also uses a similar setup (albeit using opSlice()
instead of byXXX(), but it's the same idea).
T
--
EMACS = Extremely Massive And Cumbersome System
More information about the Digitalmars-d-learn
mailing list