Documentation ¶
Index ¶
- func Contains[T comparable](list []T, v T) bool
- func ContainsOf[T any](list []T, f func(T) bool) bool
- func Filter[T any](list []T, f func(T) bool) []T
- func Index[T comparable](list []T, v T) int
- func IndexOf[T any](list []T, f func(T) bool) int
- func To[T, R any](list []T, f func(T) R) []R
- func ToFilter[T, R any](list []T, f func(T) (R, bool)) []R
- func ToMap[T any, R comparable](list []T, f func(T) R) map[R]T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToMap ¶
func ToMap[T any, R comparable](list []T, f func(T) R) map[R]T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.