Comment by stock_toaster
2 years ago
You can prevent later longer reslicing by add an additional cap() element to the slicing to shrink the capacity.
s = s[:3:3]
from your first example link.
2 years ago
You can prevent later longer reslicing by add an additional cap() element to the slicing to shrink the capacity.
s = s[:3:3]
from your first example link.
No comments yet
Contribute on Hacker News ↗