RosettaCodeData/Task/Collections/Wren/collections.wren
2023-07-01 13:44:08 -04:00

16 lines
222 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
}