4 lines
136 B
Nim
4 lines
136 B
Nim
var s: string = "Hello, world! ☺"
|
|
echo '"',s, '"'," has byte length: ", len(s)
|
|
|
|
# -> "Hello, world! ☺" has unicode char length: 17
|