slice

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 3 Imported by: 0

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 In

func In[T comparable](sl []T, v T) *in

In 通配

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL