Power of D

Brad Anderson eco at gnuk.net
Thu Apr 26 10:38:50 PDT 2012


On Wed, Apr 25, 2012 at 11:55 PM, Era Scarecrow <rtcvb32 at yahoo.com> wrote:

> On Wednesday, 25 April 2012 at 17:52:36 UTC, bioinfornatics wrote:
>
>> i search some example of something easy (more easy)  to do in D an not
>> in another language if possible
>> - D - C++
>> - D - Haskell
>> - D - Java
>> - D - python
>>
>> thanks a lot
>>
>
>  Associative arrays?
>
> C++:
> #include <map>
> #include <string>
>
> map<string, string> m;
>
>
You actually want unordered_map<string, string> if you want the equivalent
of D's string[string].

Regards,
Brad Anderson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120426/b659f749/attachment.html>


More information about the Digitalmars-d-learn mailing list