Files
pplus-core/mojo/probes/list-negative-index.mojo
T
2026-10-05 03:03:38 +00: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])