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

9 lines
236 B
Mojo

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