Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Variable-size-Set/Wren/variable-size-set.wren
Normal file
8
Task/Variable-size-Set/Wren/variable-size-set.wren
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// create a list with 10 elements all initialized to zero
|
||||
var l = List.filled(10, 0)
|
||||
// give them different values and print them
|
||||
for (i in 0..9) l[i] = i
|
||||
System.print(l)
|
||||
// add another element to the list dynamically and print it again
|
||||
l.add(10)
|
||||
System.print(l)
|
||||
Loading…
Add table
Add a link
Reference in a new issue