8 lines
208 B
Mojo
8 lines
208 B
Mojo
# probe: what happens when a String is indexed by codepoint= at a negative index?
|
|
def main():
|
|
var t = String("abc")
|
|
var i = -1
|
|
print("before")
|
|
print(String(t[codepoint=i]))
|
|
print("after")
|