Documentation
¶
Index ¶
- func BinarySearch(arr []def.CmpKey, x def.CmpKey) int
- func Contains(arr interface{}, sub interface{}) (bool, error)
- func DiffUint64(a, b []uint64) []uint64
- func Difference(a []uint64, b []uint64) []uint64
- func In(a uint64, b []uint64) bool
- func Intersection(a []uint64, b []uint64) []uint64
- func IsCoincide(s1, s2 []def.CmpKey) bool
- func OrderArrayIntersection(a []uint64, b []uint64) []uint64
- func RemoveDuplicates(s []int) []int
- func Sort(s []int)
- func StringContains(arr []string, sub string) bool
- func Union(a []uint64, b []uint64) []uint64
- type Equal
- type IntSlice
- type Less
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffUint64 ¶
func Difference ¶
func Intersection ¶
func IsCoincide ¶
没有泛型,范例,实际需根据不同类型各写一遍,用CmpKey,基本类型又用不了,go需要能给基本类型实现方法不能给外部类型实现方法
func OrderArrayIntersection ¶
func RemoveDuplicates ¶
func StringContains ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.