9 lines
236 B
Mojo
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")
|