Documentation ¶
Index ¶
- func Bytes(s []byte) int
- func BytesAreSorted(s []byte) bool
- func Float32s(s []float32) int
- func Float32sAreSorted(s []float32) bool
- func Float64s(s []float64) int
- func Float64sAreSorted(a []float64) bool
- func Int16s(s []int16) int
- func Int16sAreSorted(s []int16) bool
- func Int32s(s []int32) int
- func Int32sAreSorted(s []int32) bool
- func Int64s(s []int64) int
- func Int64sAreSorted(s []int64) bool
- func Int8s(s []int8) int
- func Int8sAreSorted(s []int8) bool
- func Ints(s []int) int
- func IntsAreSorted(a []int) bool
- func IsSorted(data sort.Interface) bool
- func Runes(s []rune) int
- func RunesAreSorted(s []rune) bool
- func Slice(slice interface{}, less func(i, j int) bool) int
- func SliceIsSorted(data interface{}, less func(i, j int) bool) bool
- func SliceStable(slice interface{}, less func(i, j int) bool) int
- func Sort(data sort.Interface) int
- func Stable(data sort.Interface) int
- func Strings(s []string) int
- func StringsAreSorted(a []string) bool
- func Uint16s(s []uint16) int
- func Uint16sAreSorted(s []uint16) bool
- func Uint32s(s []uint32) int
- func Uint32sAreSorted(s []uint32) bool
- func Uint64s(s []uint64) int
- func Uint64sAreSorted(s []uint64) bool
- func Uint8s(s []uint8) int
- func Uint8sAreSorted(s []uint8) bool
- func Uintptrs(s []uintptr) int
- func UintptrsAreSorted(s []uintptr) bool
- func Uints(s []uint) int
- func UintsAreSorted(s []uint) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesAreSorted ¶ added in v1.1.0
Bytes tests whether a slice of byte is sorted and deduplicated in increasing order.
func Float32s ¶ added in v1.1.0
Float32s sorts and deduplicates a slice of float32 in increasing order.
func Float32sAreSorted ¶ added in v1.1.0
Float32s tests whether a slice of float32 is sorted and deduplicated in increasing order.
func Float64s ¶
Float64s sorts and deduplicates a slice of float64s in increasing order (not-a-number values are treated as less than other values).
func Float64sAreSorted ¶
Float64sAreSorted tests whether a slice of float64s is sorted and deduplicated in increasing order (not-a-number values are treated as less than other values).
func Int16sAreSorted ¶ added in v1.1.0
Int16s tests whether a slice of int16 is sorted and deduplicated in increasing order.
func Int32sAreSorted ¶ added in v1.1.0
Int32s tests whether a slice of int32 is sorted and deduplicated in increasing order.
func Int64sAreSorted ¶ added in v1.1.0
Int64s tests whether a slice of int64 is sorted and deduplicated in increasing order.
func Int8sAreSorted ¶ added in v1.1.0
Int8s tests whether a slice of int8 is sorted and deduplicated in increasing order.
func IntsAreSorted ¶
IntsAreSorted tests whether a slice of ints is sorted and deduplicated in increasing order.
func RunesAreSorted ¶ added in v1.1.0
Runes tests whether a slice of rune is sorted and deduplicated in increasing order.
func SliceIsSorted ¶ added in v0.2.0
SliceIsSorted reports if slice is sorted and deduplicated.
func SliceStable ¶ added in v1.0.0
SliceStable sorts and deduplicates the provided slice given the provided less function while keeping the original order of equal elements.
func Stable ¶ added in v1.0.0
Stable sorts and deduplicates data while keeping the original order of equal elements.
func StringsAreSorted ¶
StringsAreSorted tests whether a slice of strings is sorted and deduplicated in increasing order.
func Uint16s ¶ added in v1.1.0
Uint16s sorts and deduplicates a slice of uint16 in increasing order.
func Uint16sAreSorted ¶ added in v1.1.0
Uint16s tests whether a slice of uint16 is sorted and deduplicated in increasing order.
func Uint32s ¶ added in v1.1.0
Uint32s sorts and deduplicates a slice of uint32 in increasing order.
func Uint32sAreSorted ¶ added in v1.1.0
Uint32s tests whether a slice of uint32 is sorted and deduplicated in increasing order.
func Uint64s ¶ added in v1.1.0
Uint64s sorts and deduplicates a slice of uint64 in increasing order.
func Uint64sAreSorted ¶ added in v1.1.0
Uint64s tests whether a slice of uint64 is sorted and deduplicated in increasing order.
func Uint8sAreSorted ¶ added in v1.1.0
Uint8s tests whether a slice of uint8 is sorted and deduplicated in increasing order.
func Uintptrs ¶ added in v1.1.0
Uintptrs sorts and deduplicates a slice of uintptr in increasing order.
func UintptrsAreSorted ¶ added in v1.1.0
Uintptrs tests whether a slice of uintptr is sorted and deduplicated in increasing order.
func UintsAreSorted ¶ added in v1.1.0
Uints tests whether a slice of uint is sorted and deduplicated in increasing order.
Types ¶
This section is empty.