Documentation
¶
Index ¶
- func DeleteFunc[K comparable, V any](m map[K]V, filter func(K) bool)
- func Filter[T any](list []T, filter func(T) bool) iter.Seq[T]
- func FindPairFunc[K comparable, V any](m map[K]V, filter func(K) bool) iter.Seq2[K, V]
- func First[T any](list []T, filter func(T) bool) (v T)
- func FirstPairFunc[K comparable, V any](m map[K]V, filter func(K) bool) (key K, value V, ok bool)
- func IterateCast[I any, O any](list []I) (i iter.Seq[O])
- func Keys[K comparable, V any](m map[K]V) (keys []K)
- func ListCast[I any, O any](list []I) (out []O)
- func ToMap[T comparable](list []T) (m map[T]struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFunc ¶
func DeleteFunc[K comparable, V any](m map[K]V, filter func(K) bool)
func FindPairFunc ¶
func FindPairFunc[K comparable, V any](m map[K]V, filter func(K) bool) iter.Seq2[K, V]
func FirstPairFunc ¶
func FirstPairFunc[K comparable, V any](m map[K]V, filter func(K) bool) (key K, value V, ok bool)
func Keys ¶
func Keys[K comparable, V any](m map[K]V) (keys []K)
func ToMap ¶
func ToMap[T comparable](list []T) (m map[T]struct{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.