mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
For a zero-length string, there are no characters. The final character has to be conditional.
18 lines
281 B
Text
18 lines
281 B
Text
[
|
|
"".chars(),
|
|
"a".chars(),
|
|
"abc".chars(),
|
|
// The string "Z\u{00fc}rich"
|
|
"Zürich".chars(),
|
|
// The string "Zu\u{0308}rich"
|
|
"Zürich".chars(),
|
|
]
|
|
|
|
# output:
|
|
[
|
|
[],
|
|
["a"],
|
|
["a", "b", "c"],
|
|
["Z", "ü", "r", "i", "c", "h"],
|
|
["Z", "u", "̈", "r", "i", "c", "h"]
|
|
]
|