Documentation ¶
Overview ¶
Package uniq provides removal of adjacent duplicate elements in slices. It is similar to the unix command uniq.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifySlice ¶
ModifySlice removes adjacent duplicate elements from the slice pointed to by sliceptr. It adjusts the length of the slice appropriately and zeros the tail. eq reports whether (*sliceptr)[i] and (*sliceptr)[j] are equal. ModifySlice does O(len(*sliceptr)) operations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.