Thread overview
assocArray.get(key, default) exists?
Jun 21, 2014
Paul
Jun 21, 2014
Andrej Mitrovic
Jun 21, 2014
bearophile
Jun 21, 2014
Paul
June 21, 2014
IS there such method get(key, default) for associative arrays, like in Python?
June 21, 2014
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.


June 21, 2014
Paul:

> IS there such method get(key, default) for associative arrays, like in Python?

Try it.

Bye,
bearophile
June 21, 2014
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 :)