Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m Java: Sp
Line 330:
 
===Go===
[[Go (programming language)|Go]] has built-in, language-level support for associative arrays, called ''maps''. A map's key type may only be a boolean, numeric, string, pointerarray, functionstruct, interfacepointer, mapinterface, or channel type. A map type is written like this: <tt>map[keytype]valuetype</tt>.
 
Adding elements one at a time: