mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-10 21:58:48 +01:00
# Conflicts: # src/module/io.wren # src/module/io.wren.inc # test/api/call.wren # test/api/returns.wren
11 lines
255 B
Plaintext
11 lines
255 B
Plaintext
class Lists {
|
|
foreign static def newList()
|
|
foreign static def 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]
|