Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FastSortF64 ¶
func FastSortF64(a []float64)
FastSortF64 The way for float64 sort faster cause type float64 follow IEEE754 features of floating standard
func Insert ¶
func Insert[T comparable](sl *[]T, ins []T, idx int)
Insert Add element(s) at any index of the slice orig Need a slice ins Need a slice Func will change orig slice
func NI ¶ added in v0.3.0
func NI[T comparable](sliceA []T, sliceB []T) (n []T, idx []int)
NI Slice A element not in Slice B [T]A数组是否有B不包含的元素,并返回B中不包含的A的元素数组 n 不在B的元素 idx index
func RmDup ¶
func RmDup[T comparable](i []T, rmEmp bool) []T
RmDup RmDupI remove duplicate & zero element rmEmp 是否需要删除zero值
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.