Documentation ¶
Index ¶
- func BreakUp[T any](items []T, chunkSize int) [][]T
- func Group[T any, K comparable](s []T, keyFunc func(T) K) map[K][]T
- func Insert[T any](slice []T, value T, index int) []T
- func Map[T any, R any](t []T, mapFunc func(T) R) []R
- func MostFrequent[T comparable](list []T) T
- func Move[T any](slice []T, srcIndex int, dstIndex int) []T
- func RangeByChunks[T any](items []T, chunkSize int, cb func([]T) error) error
- func Remove[T any](slice []T, index int) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Group ¶
func Group[T any, K comparable](s []T, keyFunc func(T) K) map[K][]T
func MostFrequent ¶
func MostFrequent[T comparable](list []T) T
func RangeByChunks ¶ added in v0.51.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.