Files
pplus-library/mojo/probes/list-negative-index.mojo
T
2026-10-06 09:57:04 -04:00

6 lines
122 B
Mojo

# probe: is a run-time negative index allowed on a List?
def main():
var l = [1, 2, 3]
var i = -1
print(l[i])