RosettaCodeData/Task/Collections/Wren/collections.wren
2016-12-05 23:44:36 +01:00

16 lines
219 B
Text

var list = [] // Empty Array
list = [1,2,3,4]
list.add(5)
list.clear()
list = [0] * 10
list.count // 10
var map = {}
map["key"] = "value"
map[3] = 31
map.count // 2
map.clear()
for (e in map.keys) {
// Do stuff
}