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

Reply via email to