mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
21 lines
324 B
Plaintext
21 lines
324 B
Plaintext
var list = [1,2,3,4]
|
|
|
|
list[0] += 10
|
|
System.print(list[0]) // expect: 11
|
|
|
|
list[1] -= 3
|
|
System.print(list[1]) // expect: -1
|
|
|
|
list[2] *= 9
|
|
System.print(list[2]) // expect: 27
|
|
|
|
list[3] /= 2
|
|
System.print(list[3]) // expect: 2
|
|
|
|
list[0] <<= 2
|
|
System.print(list[0]) // expect: 44
|
|
|
|
list[2] >>= 1
|
|
System.print(list[2]) // expect: 13
|
|
|