Fastest Way of Accessing Entries in an AA

Dragos Carp via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jan 8 07:49:45 PST 2015


On Thursday, 8 January 2015 at 15:45:27 UTC, Nordlöw wrote:
> Is
>
>     key in aa ? aa[key] : ValueType.init;
>
> the most efficient way to maybe return a value from an 
> associative array aa?

aa.get(key, ValueType.init)


More information about the Digitalmars-d-learn mailing list