Documentation
¶
Index ¶
- func Concat[T any](slices ...[]T) []T
- func CopyWithin[T any](in []T, target int, start int, end ...int) []T
- func Entries[K comparable, V any](m map[K]V) []struct{ ... }
- func Every[T any](in []T, pred func(T) bool) bool
- func EveryIndex[T any](in []T, pred func(T) bool) (bool, int)
- func Fill[T any](template []T, value T) []T
- func Filter[T any](in []T, keep func(T) bool) []T
- func Find[T any](in []T, pred func(T) bool) (T, bool)
- func FindIndex[T any](in []T, pred func(T) bool) int
- func Flat[T any](chunks [][]T) []T
- func FlatMap[T any, R any](in []T, fn func(T) []R) []R
- func ForEach[T any](in []T, fn func(T))
- func Includes[T comparable](in []T, target T) bool
- func IndexOf[T comparable](in []T, target T) int
- func IndexOfFunc[T any](in []T, pred func(T) bool) int
- func Join[T fmt.Stringer](in []T, sep string) string
- func Keys[K comparable, V any](m map[K]V) []K
- func LastIndexOf[T comparable](in []T, target T) int
- func LastIndexOfFunc[T any](in []T, pred func(T) bool) int
- func Map[T any, R any](in []T, f func(T) R) []R
- func Pop[T any](in []T) (T, []T)
- func PopFree[T any](in []T) (T, []T)
- func Reduce[T, R any](in []T, init R, fn func(R, T) R) R
- func ReduceRight[T, R any](in []T, init R, fn func(R, T) R) R
- func Reverse[T any](in []T) []T
- func Shift[T any](in []T) (T, []T)
- func Slice[T any](in []T, start, end int) []T
- func Some[T any](in []T, pred func(T) bool) bool
- func Sort[T any](in []T, less func(a, b T) bool)
- func Splice[T any](in []T, start, deleteCount int, items ...T) []T
- func ToReversed[T any](in []T) []T
- func ToString[T any](in []T) string
- func Unshift[T any](in []T, item T) []T
- func Values[K comparable, V any](m map[K]V) []V
- func With[T any](in []T, idx int, val T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entries ¶
func Entries[K comparable, V any](m map[K]V) []struct { Key K Value V }
func Includes ¶
func Includes[T comparable](in []T, target T) bool
func IndexOf ¶
func IndexOf[T comparable](in []T, target T) int
func IndexOfFunc ¶
func Keys ¶
func Keys[K comparable, V any](m map[K]V) []K
func LastIndexOf ¶
func LastIndexOf[T comparable](in []T, target T) int
func LastIndexOfFunc ¶
func ReduceRight ¶
func ReduceRight[T, R any](in []T, init R, fn func(R, T) R) R
func ToReversed ¶
func ToReversed[T any](in []T) []T
func Values ¶
func Values[K comparable, V any](m map[K]V) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.