List.clear and List.insert().

This commit is contained in:
Bob Nystrom
2013-11-26 23:11:11 -08:00
parent 56449cdbef
commit f8ded27376
3 changed files with 126 additions and 28 deletions
+7
View File
@@ -0,0 +1,7 @@
var a = [1, 2, 3]
a.clear
io.write(a) // expect: []
io.write(a.count) // expect: 0
// Returns null.
io.write([1, 2].clear) // expect: null