Documentation ¶
Index ¶
- func Diff[T any](from, to []T, cmp func(lhs, rhs T) int) (steady, added, dropped []T)
- func Filter[T any](in []T, filter func(t T) bool) (out []T)
- func Map[Key comparable, T any](x []T, key func(t T) Key) map[Key]T
- func SortCopy[T any](in []T, cmp func(lhs, rhs T) int) (out []T)
- func Split[T any](x []T, isOk func(t T) bool) (good, bad []T)
- func Transform[T1, T2 any](in []T1, f func(t T1) T2) (out []T2)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶ added in v3.75.1
func Map[Key comparable, T any](x []T, key func(t T) Key) map[Key]T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.