Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Collections/Wren/collections.wren
Normal file
16
Task/Collections/Wren/collections.wren
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue