News for hackers. Stuff that matters.
Re:Go(lang): Robust generic functions on slices by stock_toaster on Friday February 23, 2024 @11:12PM (#39489050)
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.

There are no comments on this comment yet.