3 ms·
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.
by stock_toaster 3y 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.