Map literals!

This commit is contained in:
Bob Nystrom
2015-01-24 23:21:50 -08:00
parent abe80e6d4b
commit e740a4c95a
12 changed files with 83 additions and 20 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
var map = new Map
var map = {}
IO.print(map.count) // expect: 0
map["one"] = "value"
IO.print(map.count) // expect: 1