9 lines
240 B
Mojo
9 lines
240 B
Mojo
# probe: what happens when a List is sliced past its end (List[Int](l[1:9]) on a List of three)?
|
|
def main():
|
|
var l: List[Int] = [1, 2, 3]
|
|
var hi = 9
|
|
print("before")
|
|
var m = List[Int](l[1:hi])
|
|
print(m)
|
|
print("after")
|