digitalmars.D.learn - assocArray.get(key, default) exists?
- Paul (2/2) Jun 21 2014 IS there such method get(key, default) for associative arrays,
- Andrej Mitrovic via Digitalmars-d-learn (4/5) Jun 21 2014 Python?
- bearophile (4/6) Jun 21 2014 Try it.
- Paul (2/8) Jun 21 2014 Wow! Thank you! It exists. Excuse my silly question :)
IS there such method get(key, default) for associative arrays, like in Python?
Jun 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 inPython?I think it's named getDefault, try that.
Jun 21 2014
Paul:IS there such method get(key, default) for associative arrays, like in Python?Try it. Bye, bearophile
Jun 21 2014
On Saturday, 21 June 2014 at 18:14:15 UTC, bearophile wrote:Paul:Wow! Thank you! It exists. Excuse my silly question :)IS there such method get(key, default) for associative arrays, like in Python?Try it. Bye, bearophile
Jun 21 2014