assocArray.get(key, default) exists?

2014-06-21 Thread Paul via Digitalmars-d-learn
IS there such method get(key, default) for associative arrays, like in Python?

Re: assocArray.get(key, default) exists?

2014-06-21 Thread Andrej Mitrovic via Digitalmars-d-learn
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.

Re: assocArray.get(key, default) exists?

2014-06-21 Thread bearophile via Digitalmars-d-learn
Paul: IS there such method get(key, default) for associative arrays, like in Python? Try it. Bye, bearophile

Re: assocArray.get(key, default) exists?

2014-06-21 Thread Paul via Digitalmars-d-learn
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 :)