This commit is contained in:
commit
568474d52f
1591 files changed
+528213
No files matched your search
@@ -0,0 +1,8 @@
|
||||
# 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")
|
||||
Reference in new issue
Block a user