Documentation
¶
Index ¶
- func Clone(arr []any) []any
- func Contains[T comparable](arr []T, item T) bool
- func EditAll[T any](arr []T, f func(index int, data T) T)
- func First[T any](l []T) (fst T, ok bool)
- func ForEach[T any](arr []T, f func(index int, data T))
- func HasDuplicate[T comparable](arr []T) bool
- func Last[T any](l []T) (last T, ok bool)
- func Map[T any, K any](from []T, tx func(T) K) []K
- func NotEmpty(arr []string) []string
- func NotNil(a ...any) bool
- func RemoveDuplicate[T comparable](arr []T) []T
- func Reverse[T any](a []T)
- func Shuffle[T any](array []T)
- func Sum[T constrains.Calculable](arr []T) T
- func Where[T1 any](vs []T1, condition func(T1) bool) []T1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](arr []T, item T) bool
func HasDuplicate ¶
func HasDuplicate[T comparable](arr []T) bool
func RemoveDuplicate ¶
func RemoveDuplicate[T comparable](arr []T) []T
func Sum ¶
func Sum[T constrains.Calculable](arr []T) T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.