Documentation ¶
Index ¶
- func Contains[T comparable](elems []T, elem T) bool
- func Convert[T any, P any](items []T, converterF func(T) P) []P
- func FilterBy[T any](items []T, filterF func(T) bool) []T
- func Keys[T any, K comparable](m map[K]T) []K
- func SortBy[T any](items []T, lessF func(T, T) bool) []T
- func ToIndexMap[T comparable](items []T) map[T]bool
- func ToMap[T any, K comparable](items []T, keyF func(T) K) map[K]T
- func Values[T any, K comparable](m map[K]T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](elems []T, elem T) bool
func Keys ¶
func Keys[T any, K comparable](m map[K]T) []K
func ToIndexMap ¶
func ToIndexMap[T comparable](items []T) map[T]bool
func ToMap ¶
func ToMap[T any, K comparable](items []T, keyF func(T) K) map[K]T
func Values ¶
func Values[T any, K comparable](m map[K]T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.