Files
wren/test/list/clear.wren
T
Bob Nystrom b979272305 Clean up text handling a bit:
- Rename IO.write -> IO.print.
- Make IO.write not print a newline.
- Support \u Unicode escapes in strings.
2014-01-05 12:27:12 -08:00

8 lines
146 B
Plaintext

var a = [1, 2, 3]
a.clear
IO.print(a) // expect: []
IO.print(a.count) // expect: 0
// Returns null.
IO.print([1, 2].clear) // expect: null