Power of D

David d at dav1d.de
Thu Apr 26 03:50:49 PDT 2012


Am 26.04.2012 07:55, schrieb Era Scarecrow:
> Associative arrays?
>
> C++:
> #include <map>
> #include <string>
>
> map<string, string> m;
>
> Java:
> import java.util.*;
>
>
> Map<String, String> map = new HashMap<String, String>();
>
> D:
> string[string] map
>
> (Don't know the other two... sorry)
> --


Python:

map = dict() # or
map = {}


More information about the Digitalmars-d-learn mailing list