mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
11 lines
247 B
Plaintext
11 lines
247 B
Plaintext
|
|
class Lists {
|
||
|
|
foreign static newList()
|
||
|
|
foreign static insert()
|
||
|
|
}
|
||
|
|
|
||
|
|
var list = Lists.newList()
|
||
|
|
System.print(list is List) // expect: true
|
||
|
|
System.print(list.count) // expect: 0
|
||
|
|
|
||
|
|
System.print(Lists.insert()) // expect: [4, 5, 6, 1, 2, 3, 9, 8, 7]
|