modulepackage
0.0.0-20150818121801-cbe035fff7de
Repository: https://github.com/mpvl/unique.git
Documentation: pkg.go.dev
# Functions
Float64s removes duplicate elements from a sorted slice of float64s.
Float64sAreUnique tests whether a slice of float64s is sorted and its elements are unique.
Ints removes duplicate elements from a sorted slice of ints.
IntsAreUnique tests whether a slice of ints is sorted and its elements are unique.
IsUniqued reports whether the elements in data are sorted and unique.
Sort sorts and removes duplicate entries from data.
Strings removes duplicate elements from a sorted slice of strings.
StringsAreUnique tests whether a slice of strings is sorted and its elements are unique.
ToFront reports the number of unique elements of data which it moves to the first n positions.
Unique removes duplicate elements from data.
# Structs
Float64Slice attaches the methods of Interface to []float64.
IntSlice attaches the methods of Interface to []int.
StringSlice attaches the methods of Interface to []string.
# Interfaces
Types that implement unique.Interface can have duplicate elements removed by the functionality in this package.