Logo

Programming-Idioms

History of Idiom 8 > diff from v62 to v63

Edit summary for version 63 by nh :
[Dart] hjv

Version 62

2019-10-14, 12:21:31

Version 63

2019-12-03, 08:48:15

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
var x = {
	"one": 1,
	"two": 2
};
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
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