arrayx

package
v0.0.0-...-4675295 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(length int, predicate func(i int) bool) bool

func IndexOf

func IndexOf(length int, predicate func(i int) bool) int

func IndexOfInt

func IndexOfInt(arr []int, item int) int

func RemoveAt

func RemoveAt(arr *[]interface{}, i int)

func RemoveRep

func RemoveRep(slc []string) []string

元素去重

func RemoveRepByLoop

func RemoveRepByLoop(slc []string) []string

通过两重循环过滤重复元素

func RemoveRepByMap

func RemoveRepByMap(slc []string) []string

通过map主键唯一的特性过滤重复元素

func Unique

func Unique(a []string) (ret []string)

移除重复和空的值

Types

This section is empty.

Jump to

Keyboard shortcuts

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