Documentation ¶
Index ¶
- func AppendOnce[T comparable](arr []T, item T) []T
- func Concat[T any](a ...[]T) []T
- func Flip[T any](a []T) []T
- func GetOneWithCondition[T any](slice []T, f func(index int, elem T) bool) T
- func Has[T comparable](arr []T, item ...T) bool
- func HasInterface(arr interface{}, item ...interface{}) bool
- func IndexOf[T comparable](arr []T, id T) int
- func New[T any](v ...T) []T
- func Nil[T any]() T
- func NumberConvert[T1, T2 Number](arr []T1) []T2
- func Remove[T comparable](arr []T, a ...T) []T
- func RemoveAt[T any](arr []T, index int) []T
- func RemoveDuplicate[T comparable](arr []T) []T
- func RemoveOne[T comparable](arr []T, id T) []T
- func RemoveOneWithCondition[T any](slice []T, f func(index int, elem T) bool) ([]T, []T)
- func RemoveWithCondition[T any](slice []T, f func(index int, elem T) bool) ([]T, []T)
- type Float
- type KVIntString
- type Number
- type Signed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendOnce ¶ added in v0.2.1
func AppendOnce[T comparable](arr []T, item T) []T
func GetOneWithCondition ¶ added in v0.2.2
func Has ¶ added in v0.2.1
func Has[T comparable](arr []T, item ...T) bool
func HasInterface ¶ added in v0.2.2
func HasInterface(arr interface{}, item ...interface{}) bool
func IndexOf ¶ added in v0.2.1
func IndexOf[T comparable](arr []T, id T) int
func NumberConvert ¶ added in v0.2.4
func NumberConvert[T1, T2 Number](arr []T1) []T2
func Remove ¶ added in v0.2.1
func Remove[T comparable](arr []T, a ...T) []T
func RemoveDuplicate ¶ added in v0.2.2
func RemoveDuplicate[T comparable](arr []T) []T
func RemoveOne ¶ added in v0.2.1
func RemoveOne[T comparable](arr []T, id T) []T
func RemoveOneWithCondition ¶ added in v0.2.2
func RemoveWithCondition ¶ added in v0.2.2
Types ¶
type KVIntString ¶
Click to show internal directories.
Click to hide internal directories.