Documentation ¶
Index ¶
- func First[T any](in []T, end int) []T
- func Map[T any, K any, F func(item T) K](in []T, fn F) []K
- func MapFilter[T any, K any, F func(item T) (k K, ok bool)](in []T, fn F) []K
- func Reduce[T any](in [][]T) []T
- func ToMap[K comparable, T any, F func(item T) K](in []T, fn F) map[K]T
- func ToUint8[T interface{ ... }](in []T) []uint8
- func ToValuer[T driver.Valuer](in []T) []driver.Valuer
- func UniqueUnsorted[T comparable](in []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMap ¶ added in v0.22.0
func ToMap[K comparable, T any, F func(item T) K](in []T, fn F) map[K]T
func UniqueUnsorted ¶ added in v0.23.2
func UniqueUnsorted[T comparable](in []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.