Documentation ¶
Index ¶
- func InArray[T comparable](v T, arr []T) bool
- func Intersect[T comparable](arr1, arr2 []T) []T
- func Merge[T any](arr1, arr2 []T) []T
- func NumbersToStrs[T constraints.Integer | constraints.Float](arr []T) []string
- func Reverse[T any](arr []T) []T
- func Split[T any](arr []T, n int) (ret [][]T)
- func Unique[T comparable](arr []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumbersToStrs ¶
func NumbersToStrs[T constraints.Integer | constraints.Float](arr []T) []string
NumbersToStrs 任意类型slice转为字符串数组
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.