array

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Explode

func Explode(str, sep string) []string

Explode 字符串切割成 []string

func ExplodeToInt

func ExplodeToInt(str, sep string) []int

ExplodeToInt 字符串切割成 []int

func Implode

func Implode(arr interface{}, sep string) string

Implode 数组拼接成字符串

func InArray

func InArray[T string | int | int32 | int64 | float32 | float64](synx T, hax []T) bool

InArray 元素是否存在 [] 中

func Intersection

func Intersection[T string | int | int32 | int64 | float32 | float64](a, b []T) []T

Intersection 交集

func Merge

func Merge[T any](data ...[]T) []T

Merge 合并数组

func Unique

func Unique[T string | int | int32 | int64 | float32 | float64](b []T) []T

UniqueInt int数组 去重

Types

This section is empty.

Jump to

Keyboard shortcuts

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