IS there such method get(key, default) for associative arrays,
like in Python?
On Saturday, June 21, 2014, Paul via Digitalmars-d-learn <
digitalmars-d-learn@puremagic.com> wrote:
> IS there such method get(key, default) for associative arrays, like in
Python?
>
I think it's named getDefault, try that.
Paul:
IS there such method get(key, default) for associative arrays,
like in Python?
Try it.
Bye,
bearophile
On Saturday, 21 June 2014 at 18:14:15 UTC, bearophile wrote:
Paul:
IS there such method get(key, default) for associative arrays,
like in Python?
Try it.
Bye,
bearophile
Wow! Thank you! It exists. Excuse my silly question :)