3 ms·
The Compact and Replace examples leave me puzzled, are they correct?
by scns 3y ago
The Compact and Replace examples leave me puzzled, are they correct?
- nalgeon 3y agoThey are correct. > Functions that shrink the size of a slice (Delete, DeleteFunc, Compact, CompactFunc, and Replace) now zero the elements between the new length and the old length.