Logo

Programming-Idioms

History of Idiom 8 > diff from v7 to v8

Edit summary for version 8 by :

Version 7

2015-08-21, 23:03:12

Version 8

2015-08-21, 23:04:24

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.

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
Origin
https://www.dartlang.org/docs/dart-up-and-running/contents/ch03.html#ch03-maps-aka-dictionaries-or-hashes