Files
pplus-library/mojo/probes/list-slice-negative.mojo
alexm 568474d52f
Test (in pplus-core) / in-core (push) Failing after 28m44s
Initial commit
2026-11-12 22:23:48 -05:00

9 lines
232 B
Mojo

# probe: what happens when a List is sliced from a negative start (List[Int](l[-1:2]))?
def main():
var l: List[Int] = [1, 2, 3]
var lo = -1
print("before")
var m = List[Int](l[lo:2])
print(m)
print("after")