Logo

Programming-Idioms

History of Idiom 8 > diff from v66 to v67

Edit summary for version 67 by programming-idioms.org:
[Dart] +demo

Version 66

2019-12-28, 21:14:54

Version 67

2019-12-28, 21:19:11

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
Demo URL
https://dartpad.dev/3b589e3c3ec8765c785ef1f24944e274