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 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")
|
||||
Reference in new issue
Block a user