Documentation
¶
Index ¶
- func CollectChunks[T any](it iter.Seq[T], n int) iter.Seq[[]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 MapWithArg[I any, O any, A any](t []I, arg A, mapFunc func(A, I) O) []O
- func Remove[T any](slice []T, index int) []T
- func SeqFunc[I, O any](s []I, f func(I) O) iter.Seq[O]
- func ToMap[T any, K comparable, V any](s []T, transformFunc func(T) (K, V)) map[K]V
- func Unique[T comparable](list []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectChunks ¶
CollectChunks collects chunks of n elements from the input sequence and return a Seq of chunks
func Group ¶
func Group[T any, K comparable](s []T, keyFunc func(T) K) map[K][]T
func MapWithArg ¶
func ToMap ¶
func ToMap[T any, K comparable, V any](s []T, transformFunc func(T) (K, V)) map[K]V
func Unique ¶
func Unique[T comparable](list []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.