7 lines
200 B
Mojo
7 lines
200 B
Mojo
# probe: len(String) counts bytes; what do byte_length and count_codepoints give?
|
|
def main():
|
|
var s = String("héllo")
|
|
print(len(s))
|
|
print(s.byte_length())
|
|
print(s.count_codepoints())
|