Logo

Programming-Idioms

History of Idiom 8 > diff from v63 to v64

Edit summary for version 64 by programming-idioms.org:
Restored version 62

Version 63

2019-12-03, 08:48:15

Version 64

2019-12-04, 22:57:36

Idiom #8 Initialize a new map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Idiom #8 Initialize a new map (associative array)

Declare a new map object x, and provide some (key, value) pairs as initial content.

Extra Keywords
table dictionary hash
Extra Keywords
table dictionary hash
Code
0 => array("stato" => "Nessuno", "stato_sdi" => ""),
    99 => array("stato" => "Creata", "stato_sdi" => ""),
    98 => array("stato" => "In invio", "stato_sdi" => ""),
    1 => array("stato" => "Presa in carico", "stato_sdi" => ""),
    2 => array("stato" => "Errore Elaborazione", "stato_sdi" => ""),
    3 => array("stato" => "Inviata", "stato_sdi" => ""),
    4 => array("stato" => "Scartata", "stato_sdi" => "NS"),
    5 => array("stato" => "Non consegnata", "stato_sdi" => "MC"),
    6 => array
Code
var x = {
	"one": 1,
	"two": 2
};
Doc URL
https://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-maps-aka-dictionaries-or-hashes
Doc URL
https://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-maps-aka-dictionaries-or-hashes