arrayutil

package
v0.0.0-...-9c21ab8 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainInt32s

func ContainInt32s(array []int32, elem ...int32) bool

是否完全包含elem,如果elem中有重复的元素,按两次计算

func DeleteInt32

func DeleteInt32(array []int32, elem int32) []int32

只会删除第一个相等的元素

func DeleteInt32ByIndex

func DeleteInt32ByIndex(array []int32, index int) []int32

func DeleteInt32s

func DeleteInt32s(array []int32, elem ...int32) []int32

会删去所有相等的元素

func GetElementIndexInt32

func GetElementIndexInt32(array []int32, elem int32) int

func SumInt32s

func SumInt32s(array []int32) int64

func SumInts

func SumInts(array []int) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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