D idioms list

Vlad Levenfeld via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Jan 14 22:02:12 PST 2015


For optimal AA lookup, this idiom is also nice if you only need 
the result for one line:

   if (auto found = key in AA)
     do_stuff (found);


More information about the Digitalmars-d-announce mailing list