Logo

Programming-Idioms

History of Idiom 8 > diff from v65 to v66

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

Version 65

2019-12-24, 03:23:38

Version 66

2019-12-28, 21:14:54

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
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