Help us shape the future of Go! Take the 2026 Go Developer Survey

find

package
v1.7.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 Filter

func Filter[T any](list []T, filter func(T) bool) iter.Seq[T]

func FindPairFunc

func FindPairFunc[K comparable, V any](m map[K]V, filter func(K) bool) iter.Seq2[K, V]

func First

func First[T any](list []T, filter func(T) bool) (v T)

func FirstPairFunc

func FirstPairFunc[K comparable, V any](m map[K]V, filter func(K) bool) (key K, value V, ok bool)

func IterateCast

func IterateCast[I any, O any](list []I) (i iter.Seq[O])

func Keys

func Keys[K comparable, V any](m map[K]V) (keys []K)

func ListCast

func ListCast[I any, O any](list []I) (out []O)

func ToMap

func ToMap[T comparable](list []T) (m map[T]struct{})

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL