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