Documentation ¶
Index ¶
- func BoolClone(in []bool) []bool
- func BoolDiff(a, b []bool, lessFunc func(a, b bool) bool) (aOnly, bOnly []bool)
- func BoolDifference(slice1, slice2 []bool) []bool
- func BoolFind(slice []bool, elem bool) int
- func BoolUnion(slice1, slice2 []bool) []bool
- func BoolUnique(slice []bool) []bool
- func ByteClone(in []byte) []byte
- func ByteDiff(a, b []byte, lessFunc func(a, b byte) bool) (aOnly, bOnly []byte)
- func ByteDifference(slice1, slice2 []byte) []byte
- func ByteFind(slice []byte, elem byte) int
- func ByteUnion(slice1, slice2 []byte) []byte
- func ByteUnique(slice []byte) []byte
- func Complex128Clone(in []complex128) []complex128
- func Complex128Diff(a, b []complex128, lessFunc func(a, b complex128) bool) (aOnly, bOnly []complex128)
- func Complex128Difference(slice1, slice2 []complex128) []complex128
- func Complex128Find(slice []complex128, elem complex128) int
- func Complex128Union(slice1, slice2 []complex128) []complex128
- func Complex128Unique(slice []complex128) []complex128
- func Complex64Clone(in []complex64) []complex64
- func Complex64Diff(a, b []complex64, lessFunc func(a, b complex64) bool) (aOnly, bOnly []complex64)
- func Complex64Difference(slice1, slice2 []complex64) []complex64
- func Complex64Find(slice []complex64, elem complex64) int
- func Complex64Union(slice1, slice2 []complex64) []complex64
- func Complex64Unique(slice []complex64) []complex64
- func ConcatBoolSlices(slices ...[]bool) []bool
- func ConcatByteSlices(slices ...[]byte) []byte
- func ConcatComplex128Slices(slices ...[]complex128) []complex128
- func ConcatComplex64Slices(slices ...[]complex64) []complex64
- func ConcatErrorSlices(slices ...[]error) []error
- func ConcatFloat32Slices(slices ...[]float32) []float32
- func ConcatFloat64Slices(slices ...[]float64) []float64
- func ConcatInt16Slices(slices ...[]int16) []int16
- func ConcatInt32Slices(slices ...[]int32) []int32
- func ConcatInt64Slices(slices ...[]int64) []int64
- func ConcatInt8Slices(slices ...[]int8) []int8
- func ConcatIntSlices(slices ...[]int) []int
- func ConcatRuneSlices(slices ...[]rune) []rune
- func ConcatStringSlices(slices ...[]string) []string
- func ConcatUint16Slices(slices ...[]uint16) []uint16
- func ConcatUint32Slices(slices ...[]uint32) []uint32
- func ConcatUint64Slices(slices ...[]uint64) []uint64
- func ConcatUint8Slices(slices ...[]uint8) []uint8
- func ConcatUintSlices(slices ...[]uint) []uint
- func ConcatUintptrSlices(slices ...[]uintptr) []uintptr
- func ElemTypeFind(slice []ElemType, elem ElemType) int
- func ErrorClone(in []error) []error
- func ErrorDiff(a, b []error, lessFunc func(a, b error) bool) (aOnly, bOnly []error)
- func ErrorDifference(slice1, slice2 []error) []error
- func ErrorFind(slice []error, elem error) int
- func ErrorUnion(slice1, slice2 []error) []error
- func ErrorUnique(slice []error) []error
- func Float32Clone(in []float32) []float32
- func Float32Diff(a, b []float32, lessFunc func(a, b float32) bool) (aOnly, bOnly []float32)
- func Float32Difference(slice1, slice2 []float32) []float32
- func Float32Find(slice []float32, elem float32) int
- func Float32Union(slice1, slice2 []float32) []float32
- func Float32Unique(slice []float32) []float32
- func Float64Clone(in []float64) []float64
- func Float64Diff(a, b []float64, lessFunc func(a, b float64) bool) (aOnly, bOnly []float64)
- func Float64Difference(slice1, slice2 []float64) []float64
- func Float64Find(slice []float64, elem float64) int
- func Float64Union(slice1, slice2 []float64) []float64
- func Float64Unique(slice []float64) []float64
- func Int16Clone(in []int16) []int16
- func Int16Diff(a, b []int16, lessFunc func(a, b int16) bool) (aOnly, bOnly []int16)
- func Int16Difference(slice1, slice2 []int16) []int16
- func Int16Find(slice []int16, elem int16) int
- func Int16Union(slice1, slice2 []int16) []int16
- func Int16Unique(slice []int16) []int16
- func Int32Clone(in []int32) []int32
- func Int32Diff(a, b []int32, lessFunc func(a, b int32) bool) (aOnly, bOnly []int32)
- func Int32Difference(slice1, slice2 []int32) []int32
- func Int32Find(slice []int32, elem int32) int
- func Int32Union(slice1, slice2 []int32) []int32
- func Int32Unique(slice []int32) []int32
- func Int64Clone(in []int64) []int64
- func Int64Diff(a, b []int64, lessFunc func(a, b int64) bool) (aOnly, bOnly []int64)
- func Int64Difference(slice1, slice2 []int64) []int64
- func Int64Find(slice []int64, elem int64) int
- func Int64Union(slice1, slice2 []int64) []int64
- func Int64Unique(slice []int64) []int64
- func Int8Clone(in []int8) []int8
- func Int8Diff(a, b []int8, lessFunc func(a, b int8) bool) (aOnly, bOnly []int8)
- func Int8Difference(slice1, slice2 []int8) []int8
- func Int8Find(slice []int8, elem int8) int
- func Int8Union(slice1, slice2 []int8) []int8
- func Int8Unique(slice []int8) []int8
- func IntClone(in []int) []int
- func IntDiff(a, b []int, lessFunc func(a, b int) bool) (aOnly, bOnly []int)
- func IntDifference(slice1, slice2 []int) []int
- func IntFind(slice []int, elem int) int
- func IntUnion(slice1, slice2 []int) []int
- func IntUnique(slice []int) []int
- func RuneClone(in []rune) []rune
- func RuneDiff(a, b []rune, lessFunc func(a, b rune) bool) (aOnly, bOnly []rune)
- func RuneDifference(slice1, slice2 []rune) []rune
- func RuneFind(slice []rune, elem rune) int
- func RuneUnion(slice1, slice2 []rune) []rune
- func RuneUnique(slice []rune) []rune
- func StringClone(in []string) []string
- func StringDiff(a, b []string, lessFunc func(a, b string) bool) (aOnly, bOnly []string)
- func StringDifference(slice1, slice2 []string) []string
- func StringFind(slice []string, elem string) int
- func StringUnion(slice1, slice2 []string) []string
- func StringUnique(slice []string) []string
- func Uint16Clone(in []uint16) []uint16
- func Uint16Diff(a, b []uint16, lessFunc func(a, b uint16) bool) (aOnly, bOnly []uint16)
- func Uint16Difference(slice1, slice2 []uint16) []uint16
- func Uint16Find(slice []uint16, elem uint16) int
- func Uint16Union(slice1, slice2 []uint16) []uint16
- func Uint16Unique(slice []uint16) []uint16
- func Uint32Clone(in []uint32) []uint32
- func Uint32Diff(a, b []uint32, lessFunc func(a, b uint32) bool) (aOnly, bOnly []uint32)
- func Uint32Difference(slice1, slice2 []uint32) []uint32
- func Uint32Find(slice []uint32, elem uint32) int
- func Uint32Union(slice1, slice2 []uint32) []uint32
- func Uint32Unique(slice []uint32) []uint32
- func Uint64Clone(in []uint64) []uint64
- func Uint64Diff(a, b []uint64, lessFunc func(a, b uint64) bool) (aOnly, bOnly []uint64)
- func Uint64Difference(slice1, slice2 []uint64) []uint64
- func Uint64Find(slice []uint64, elem uint64) int
- func Uint64Union(slice1, slice2 []uint64) []uint64
- func Uint64Unique(slice []uint64) []uint64
- func Uint8Clone(in []uint8) []uint8
- func Uint8Diff(a, b []uint8, lessFunc func(a, b uint8) bool) (aOnly, bOnly []uint8)
- func Uint8Difference(slice1, slice2 []uint8) []uint8
- func Uint8Find(slice []uint8, elem uint8) int
- func Uint8Union(slice1, slice2 []uint8) []uint8
- func Uint8Unique(slice []uint8) []uint8
- func UintClone(in []uint) []uint
- func UintDiff(a, b []uint, lessFunc func(a, b uint) bool) (aOnly, bOnly []uint)
- func UintDifference(slice1, slice2 []uint) []uint
- func UintFind(slice []uint, elem uint) int
- func UintUnion(slice1, slice2 []uint) []uint
- func UintUnique(slice []uint) []uint
- func UintptrClone(in []uintptr) []uintptr
- func UintptrDiff(a, b []uintptr, lessFunc func(a, b uintptr) bool) (aOnly, bOnly []uintptr)
- func UintptrDifference(slice1, slice2 []uintptr) []uintptr
- func UintptrFind(slice []uintptr, elem uintptr) int
- func UintptrUnion(slice1, slice2 []uintptr) []uintptr
- func UintptrUnique(slice []uintptr) []uintptr
- type ElemType
- func ConcatElemTypeSlices(slices ...[]ElemType) []ElemType
- func ElemTypeClone(in []ElemType) []ElemType
- func ElemTypeDiff(a, b []ElemType, lessFunc func(a, b ElemType) bool) (aOnly, bOnly []ElemType)
- func ElemTypeDifference(slice1, slice2 []ElemType) []ElemType
- func ElemTypeUnion(slice1, slice2 []ElemType) []ElemType
- func ElemTypeUnique(slice []ElemType) []ElemType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolClone ¶
BoolClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func BoolDiff ¶
BoolDiff returns, given two sorted bool slices a and b, a slice of the elements occurring in a and b only, respectively.
func BoolDifference ¶
BoolDifference returns the array of elements in the first slice that aren't in the second slice
func BoolFind ¶
BoolFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func BoolUnique ¶
BoolUnique returns a new slice that contains only the first occurrence of each element in slice.
func ByteClone ¶
ByteClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func ByteDiff ¶
ByteDiff returns, given two sorted byte slices a and b, a slice of the elements occurring in a and b only, respectively.
func ByteDifference ¶
ByteDifference returns the array of elements in the first slice that aren't in the second slice
func ByteFind ¶
ByteFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func ByteUnique ¶
ByteUnique returns a new slice that contains only the first occurrence of each element in slice.
func Complex128Clone ¶
func Complex128Clone(in []complex128) []complex128
Complex128Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Complex128Diff ¶
func Complex128Diff(a, b []complex128, lessFunc func(a, b complex128) bool) (aOnly, bOnly []complex128)
Complex128Diff returns, given two sorted complex128 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Complex128Difference ¶
func Complex128Difference(slice1, slice2 []complex128) []complex128
Complex128Difference returns the array of elements in the first slice that aren't in the second slice
func Complex128Find ¶
func Complex128Find(slice []complex128, elem complex128) int
Complex128Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Complex128Union ¶
func Complex128Union(slice1, slice2 []complex128) []complex128
Complex128Union returns the union array of slice1 and slice2 without duplicates
func Complex128Unique ¶
func Complex128Unique(slice []complex128) []complex128
Complex128Unique returns a new slice that contains only the first occurrence of each element in slice.
func Complex64Clone ¶
Complex64Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Complex64Diff ¶
Complex64Diff returns, given two sorted complex64 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Complex64Difference ¶
Complex64Difference returns the array of elements in the first slice that aren't in the second slice
func Complex64Find ¶
Complex64Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Complex64Union ¶
Complex64Union returns the union array of slice1 and slice2 without duplicates
func Complex64Unique ¶
Complex64Unique returns a new slice that contains only the first occurrence of each element in slice.
func ConcatBoolSlices ¶
ConcatBoolSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatByteSlices ¶
ConcatByteSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatComplex128Slices ¶
func ConcatComplex128Slices(slices ...[]complex128) []complex128
ConcatComplex128Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatComplex64Slices ¶
ConcatComplex64Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatErrorSlices ¶
ConcatErrorSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatFloat32Slices ¶
ConcatFloat32Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatFloat64Slices ¶
ConcatFloat64Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatInt16Slices ¶
ConcatInt16Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatInt32Slices ¶
ConcatInt32Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatInt64Slices ¶
ConcatInt64Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatInt8Slices ¶
ConcatInt8Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatIntSlices ¶
ConcatIntSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatRuneSlices ¶
ConcatRuneSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatStringSlices ¶
ConcatStringSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatUint16Slices ¶
ConcatUint16Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatUint32Slices ¶
ConcatUint32Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatUint64Slices ¶
ConcatUint64Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatUint8Slices ¶
ConcatUint8Slices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatUintSlices ¶
ConcatUintSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ConcatUintptrSlices ¶
ConcatUintptrSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ElemTypeFind ¶
ElemTypeFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func ErrorClone ¶
ErrorClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func ErrorDiff ¶
ErrorDiff returns, given two sorted error slices a and b, a slice of the elements occurring in a and b only, respectively.
func ErrorDifference ¶
ErrorDifference returns the array of elements in the first slice that aren't in the second slice
func ErrorFind ¶
ErrorFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func ErrorUnion ¶
ErrorUnion returns the union array of slice1 and slice2 without duplicates
func ErrorUnique ¶
ErrorUnique returns a new slice that contains only the first occurrence of each element in slice.
func Float32Clone ¶
Float32Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Float32Diff ¶
Float32Diff returns, given two sorted float32 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Float32Difference ¶
Float32Difference returns the array of elements in the first slice that aren't in the second slice
func Float32Find ¶
Float32Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Float32Union ¶
Float32Union returns the union array of slice1 and slice2 without duplicates
func Float32Unique ¶
Float32Unique returns a new slice that contains only the first occurrence of each element in slice.
func Float64Clone ¶
Float64Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Float64Diff ¶
Float64Diff returns, given two sorted float64 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Float64Difference ¶
Float64Difference returns the array of elements in the first slice that aren't in the second slice
func Float64Find ¶
Float64Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Float64Union ¶
Float64Union returns the union array of slice1 and slice2 without duplicates
func Float64Unique ¶
Float64Unique returns a new slice that contains only the first occurrence of each element in slice.
func Int16Clone ¶
Int16Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Int16Diff ¶
Int16Diff returns, given two sorted int16 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Int16Difference ¶
Int16Difference returns the array of elements in the first slice that aren't in the second slice
func Int16Find ¶
Int16Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Int16Union ¶
Int16Union returns the union array of slice1 and slice2 without duplicates
func Int16Unique ¶
Int16Unique returns a new slice that contains only the first occurrence of each element in slice.
func Int32Clone ¶
Int32Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Int32Diff ¶
Int32Diff returns, given two sorted int32 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Int32Difference ¶
Int32Difference returns the array of elements in the first slice that aren't in the second slice
func Int32Find ¶
Int32Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Int32Union ¶
Int32Union returns the union array of slice1 and slice2 without duplicates
func Int32Unique ¶
Int32Unique returns a new slice that contains only the first occurrence of each element in slice.
func Int64Clone ¶
Int64Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Int64Diff ¶
Int64Diff returns, given two sorted int64 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Int64Difference ¶
Int64Difference returns the array of elements in the first slice that aren't in the second slice
func Int64Find ¶
Int64Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Int64Union ¶
Int64Union returns the union array of slice1 and slice2 without duplicates
func Int64Unique ¶
Int64Unique returns a new slice that contains only the first occurrence of each element in slice.
func Int8Clone ¶
Int8Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Int8Diff ¶
Int8Diff returns, given two sorted int8 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Int8Difference ¶
Int8Difference returns the array of elements in the first slice that aren't in the second slice
func Int8Find ¶
Int8Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Int8Unique ¶
Int8Unique returns a new slice that contains only the first occurrence of each element in slice.
func IntClone ¶
IntClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func IntDiff ¶
IntDiff returns, given two sorted int slices a and b, a slice of the elements occurring in a and b only, respectively.
func IntDifference ¶
IntDifference returns the array of elements in the first slice that aren't in the second slice
func IntFind ¶
IntFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func IntUnique ¶
IntUnique returns a new slice that contains only the first occurrence of each element in slice.
func RuneClone ¶
RuneClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func RuneDiff ¶
RuneDiff returns, given two sorted rune slices a and b, a slice of the elements occurring in a and b only, respectively.
func RuneDifference ¶
RuneDifference returns the array of elements in the first slice that aren't in the second slice
func RuneFind ¶
RuneFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func RuneUnique ¶
RuneUnique returns a new slice that contains only the first occurrence of each element in slice.
func StringClone ¶
StringClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func StringDiff ¶
StringDiff returns, given two sorted string slices a and b, a slice of the elements occurring in a and b only, respectively.
func StringDifference ¶
StringDifference returns the array of elements in the first slice that aren't in the second slice
func StringFind ¶
StringFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func StringUnion ¶
StringUnion returns the union array of slice1 and slice2 without duplicates
func StringUnique ¶
StringUnique returns a new slice that contains only the first occurrence of each element in slice.
func Uint16Clone ¶
Uint16Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Uint16Diff ¶
Uint16Diff returns, given two sorted uint16 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Uint16Difference ¶
Uint16Difference returns the array of elements in the first slice that aren't in the second slice
func Uint16Find ¶
Uint16Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Uint16Union ¶
Uint16Union returns the union array of slice1 and slice2 without duplicates
func Uint16Unique ¶
Uint16Unique returns a new slice that contains only the first occurrence of each element in slice.
func Uint32Clone ¶
Uint32Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Uint32Diff ¶
Uint32Diff returns, given two sorted uint32 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Uint32Difference ¶
Uint32Difference returns the array of elements in the first slice that aren't in the second slice
func Uint32Find ¶
Uint32Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Uint32Union ¶
Uint32Union returns the union array of slice1 and slice2 without duplicates
func Uint32Unique ¶
Uint32Unique returns a new slice that contains only the first occurrence of each element in slice.
func Uint64Clone ¶
Uint64Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Uint64Diff ¶
Uint64Diff returns, given two sorted uint64 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Uint64Difference ¶
Uint64Difference returns the array of elements in the first slice that aren't in the second slice
func Uint64Find ¶
Uint64Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Uint64Union ¶
Uint64Union returns the union array of slice1 and slice2 without duplicates
func Uint64Unique ¶
Uint64Unique returns a new slice that contains only the first occurrence of each element in slice.
func Uint8Clone ¶
Uint8Clone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func Uint8Diff ¶
Uint8Diff returns, given two sorted uint8 slices a and b, a slice of the elements occurring in a and b only, respectively.
func Uint8Difference ¶
Uint8Difference returns the array of elements in the first slice that aren't in the second slice
func Uint8Find ¶
Uint8Find returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func Uint8Union ¶
Uint8Union returns the union array of slice1 and slice2 without duplicates
func Uint8Unique ¶
Uint8Unique returns a new slice that contains only the first occurrence of each element in slice.
func UintClone ¶
UintClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func UintDiff ¶
UintDiff returns, given two sorted uint slices a and b, a slice of the elements occurring in a and b only, respectively.
func UintDifference ¶
UintDifference returns the array of elements in the first slice that aren't in the second slice
func UintFind ¶
UintFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func UintUnique ¶
UintUnique returns a new slice that contains only the first occurrence of each element in slice.
func UintptrClone ¶
UintptrClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func UintptrDiff ¶
UintptrDiff returns, given two sorted uintptr slices a and b, a slice of the elements occurring in a and b only, respectively.
func UintptrDifference ¶
UintptrDifference returns the array of elements in the first slice that aren't in the second slice
func UintptrFind ¶
UintptrFind returns, given a slice and an element, the first index of elem in the slice, or -1 if the slice does not contain elem.
func UintptrUnion ¶
UintptrUnion returns the union array of slice1 and slice2 without duplicates
func UintptrUnique ¶
UintptrUnique returns a new slice that contains only the first occurrence of each element in slice.
Types ¶
type ElemType ¶
ElemType is the generic element type of the slice.
func ConcatElemTypeSlices ¶
ConcatElemTypeSlices concatenates slices, returning a slice with newly allocated backing storage of the exact size.
func ElemTypeClone ¶
ElemTypeClone clones a slice, creating a new slice and copying the contents of the underlying array. If `in` is a nil slice, a nil slice is returned. If `in` is an empty slice, an empty slice is returned.
func ElemTypeDiff ¶
ElemTypeDiff returns, given two sorted ElemType slices a and b, a slice of the elements occurring in a and b only, respectively.
func ElemTypeDifference ¶
ElemTypeDifference returns the array of elements in the first slice that aren't in the second slice
func ElemTypeUnion ¶
ElemTypeUnion returns the union array of slice1 and slice2 without duplicates
func ElemTypeUnique ¶
ElemTypeUnique returns a new slice that contains only the first occurrence of each element in slice.