mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-16 20:28:04 +01:00
8 lines
300 B
Plaintext
8 lines
300 B
Plaintext
|
|
var s = "abçd"
|
||
|
|
IO.print(s.iteratorValue(0)) // expect: a
|
||
|
|
IO.print(s.iteratorValue(1)) // expect: b
|
||
|
|
IO.print(s.iteratorValue(2)) // expect: ç
|
||
|
|
// Iterator value in middle of UTF sequence is an empty string.
|
||
|
|
IO.print(s.iteratorValue(3) == "") // expect: true
|
||
|
|
IO.print(s.iteratorValue(4)) // expect: d
|