8 lines
200 B
Mojo
8 lines
200 B
Mojo
# probe: what happens when a String is indexed by codepoint= past its end?
|
|
def main():
|
|
var t = String("abc")
|
|
var i = 3
|
|
print("before")
|
|
print(String(t[codepoint=i]))
|
|
print("after")
|