Merge branch 'new-list-constructors' of https://github.com/mooxen/wren into mooxen-new-list-constructors

This commit is contained in:
Bob Nystrom
2016-08-03 22:34:08 -07:00
3 changed files with 46 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
var list = List.new(5)
System.print(list.count) // expect: 5
System.print(list) // expect: [null, null, null, null, null]
var list2 = List.filled(5, 2)
System.print(list2.count) // expect: 5
System.print(list2) // expect: [2, 2, 2, 2, 2]